diff --git a/android/app/build.gradle b/android/app/build.gradle index 8c58726b8..869d8e281 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -45,7 +45,7 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { namespace "com.hiddify.hiddify" - compileSdkVersion flutter.compileSdkVersion + compileSdkVersion 34 ndkVersion "26.1.10909125" compileOptions { @@ -64,7 +64,7 @@ android { defaultConfig { applicationId "app.hiddify.com" minSdkVersion 21 - targetSdkVersion 33 + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true @@ -128,7 +128,7 @@ dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation 'com.google.code.gson:gson:2.10.1' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" - implementation 'androidx.core:core-ktx:1.10.1' + implementation 'androidx.core:core-ktx:1.12.0' implementation 'androidx.appcompat:appcompat:1.6.1' - implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1' + implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2' } \ No newline at end of file diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index b6f7d9b33..5e87f9579 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,13 @@ - - + + + + @@ -16,8 +22,8 @@ @@ -104,14 +110,23 @@ + + android:exported="false" + android:foregroundServiceType="specialUse"> + +