Update android build tools and api level

This commit is contained in:
Ming Ming 2024-07-15 23:44:34 +08:00
parent f8a3db5a68
commit 4672e17acc
18 changed files with 33 additions and 40 deletions

View file

@ -34,8 +34,9 @@ apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
ext.abiCodes = ["armeabi-v7a": 1, "arm64-v8a": 2, "x86_64": 3]
android {
compileSdkVersion 34
ndkVersion "23.2.8568313"
namespace 'com.nkming.nc_photos'
compileSdk 34
ndkVersion "25.2.9519653"
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
@ -44,8 +45,8 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.nkming.nc_photos"
minSdkVersion 23
targetSdkVersion 33
minSdk 23
targetSdk 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
ndk {

View file

@ -1,6 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.nkming.nc_photos">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_android_core'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
consumerProguardFiles "consumer-rules.pro"
}

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_gps_map'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
}
buildTypes {

View file

@ -28,11 +28,11 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_image_processor'
compileSdk 33
ndkVersion "23.2.8568313"
compileSdk 34
ndkVersion "25.2.9519653"
defaultConfig {
minSdk 21
minSdk 23
ndk {
abiFilters "armeabi-v7a", "arm64-v8a", "x86_64"
}
@ -42,7 +42,7 @@ android {
externalNativeBuild {
cmake {
path file('src/main/cpp/CMakeLists.txt')
version '3.18.1'
version '3.22.1'
}
}

View file

@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_image_processor">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_lock'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
consumerProguardFiles "consumer-rules.pro"
}

View file

@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_lock">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_log'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
}
buildTypes {

View file

@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_log">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_message_relay'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
}
buildTypes {

View file

@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_message_relay">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_permission'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
}
buildTypes {

View file

@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_permission">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View file

@ -27,10 +27,10 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.np_platform_raw_image'
compileSdk 33
compileSdk 34
defaultConfig {
minSdk 21
minSdk 23
}
buildTypes {

View file

@ -1,3 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nkming.nc_photos.np_platform_raw_image">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

View file

@ -28,7 +28,7 @@ apply plugin: 'kotlin-android'
android {
namespace 'com.nkming.nc_photos.plugin'
compileSdk 33
compileSdk 34
compileOptions {
coreLibraryDesugaringEnabled true
@ -45,7 +45,7 @@ android {
}
defaultConfig {
minSdk 21
minSdk 23
}
}

View file

@ -1,3 +1,2 @@
<manifest package="com.nkming.nc_photos.plugin"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>