diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/android/.gradle/7.4.2/checksums/checksums.lock b/android/.gradle/7.4.2/checksums/checksums.lock new file mode 100644 index 0000000..c23c7a4 Binary files /dev/null and b/android/.gradle/7.4.2/checksums/checksums.lock differ diff --git a/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock b/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000..8583682 Binary files /dev/null and b/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock differ diff --git a/android/.gradle/7.4.2/dependencies-accessors/gc.properties b/android/.gradle/7.4.2/dependencies-accessors/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/android/.gradle/7.4.2/executionHistory/executionHistory.lock b/android/.gradle/7.4.2/executionHistory/executionHistory.lock new file mode 100644 index 0000000..be72725 Binary files /dev/null and b/android/.gradle/7.4.2/executionHistory/executionHistory.lock differ diff --git a/android/.gradle/7.4.2/fileChanges/last-build.bin b/android/.gradle/7.4.2/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/android/.gradle/7.4.2/fileChanges/last-build.bin differ diff --git a/android/.gradle/7.4.2/fileHashes/fileHashes.lock b/android/.gradle/7.4.2/fileHashes/fileHashes.lock new file mode 100644 index 0000000..4d5ad42 Binary files /dev/null and b/android/.gradle/7.4.2/fileHashes/fileHashes.lock differ diff --git a/android/.gradle/7.4.2/gc.properties b/android/.gradle/7.4.2/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..e9582aa Binary files /dev/null and b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/android/.gradle/buildOutputCleanup/cache.properties b/android/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..b327b7b --- /dev/null +++ b/android/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Mon Aug 29 13:42:02 CST 2022 +gradle.version=7.4.2 diff --git a/android/.gradle/vcs-1/gc.properties b/android/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/android/src/main/kotlin/com/shounakmulay/telephony/sms/SmsController.kt b/android/src/main/kotlin/com/shounakmulay/telephony/sms/SmsController.kt index dea8ce4..ea97baa 100644 --- a/android/src/main/kotlin/com/shounakmulay/telephony/sms/SmsController.kt +++ b/android/src/main/kotlin/com/shounakmulay/telephony/sms/SmsController.kt @@ -189,7 +189,7 @@ class SmsController(private val context: Context) { @RequiresPermission(Manifest.permission.READ_PHONE_STATE) fun getCallState(): Int { val telephonyManager = getTelephonyManager() - return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + return if (Build.VERSION.SDK_INT >= 33) { telephonyManager.callStateForSubscription } else { telephonyManager.callState diff --git a/example/android/.gradle/7.4.2/checksums/checksums.lock b/example/android/.gradle/7.4.2/checksums/checksums.lock new file mode 100644 index 0000000..1990bc1 Binary files /dev/null and b/example/android/.gradle/7.4.2/checksums/checksums.lock differ diff --git a/example/android/.gradle/7.4.2/fileChanges/last-build.bin b/example/android/.gradle/7.4.2/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/example/android/.gradle/7.4.2/fileChanges/last-build.bin differ diff --git a/example/android/.gradle/7.4.2/fileHashes/fileHashes.lock b/example/android/.gradle/7.4.2/fileHashes/fileHashes.lock new file mode 100644 index 0000000..aa39a99 Binary files /dev/null and b/example/android/.gradle/7.4.2/fileHashes/fileHashes.lock differ diff --git a/example/android/.gradle/7.4.2/gc.properties b/example/android/.gradle/7.4.2/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/example/android/.gradle/vcs-1/gc.properties b/example/android/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 33553a8..75e99ab 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -40,7 +40,7 @@ android { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). minSdkVersion 23 applicationId "com.shounakmulay.telephony_example" - targetSdkVersion 31 + targetSdkVersion 33 versionCode flutterVersionCode.toInteger() versionName flutterVersionName }