master
王亚玲 2 years ago
parent a7f9c11a4e
commit 4c8330a4c9

@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}

@ -0,0 +1,2 @@
#Mon Aug 29 13:42:02 CST 2022
gradle.version=7.4.2

@ -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

@ -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
}

Loading…
Cancel
Save