2020-02-27 17:21:45 +08:00
|
|
|
|
def localProperties = new Properties()
|
|
|
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
|
|
|
if (localPropertiesFile.exists()) {
|
|
|
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
|
|
|
localProperties.load(reader)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
|
|
|
|
if (flutterRoot == null) {
|
|
|
|
|
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
|
|
|
|
if (flutterVersionCode == null) {
|
|
|
|
|
flutterVersionCode = '1'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
|
|
|
|
if (flutterVersionName == null) {
|
|
|
|
|
flutterVersionName = '1.0'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
|
|
|
|
|
|
|
|
|
android {
|
2023-04-07 21:40:02 +08:00
|
|
|
|
compileSdkVersion 33
|
2021-10-10 23:50:23 +08:00
|
|
|
|
compileOptions {
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
2020-02-27 17:21:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
2023-04-07 21:40:02 +08:00
|
|
|
|
applicationId "com.finogeeks.finosprite"
|
2020-02-27 22:59:31 +08:00
|
|
|
|
minSdkVersion 21
|
2021-10-10 23:50:23 +08:00
|
|
|
|
targetSdkVersion 30
|
2020-02-27 17:21:45 +08:00
|
|
|
|
versionCode flutterVersionCode.toInteger()
|
|
|
|
|
versionName flutterVersionName
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
// TODO: Add your own signing config for the release build.
|
|
|
|
|
// Signing with the debug keys for now, so `flutter run --release` works.
|
|
|
|
|
signingConfig signingConfigs.debug
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-04-07 21:40:02 +08:00
|
|
|
|
packagingOptions {
|
|
|
|
|
// libsdkcore.so、libyuvutil.so是被加固过的,不能被压缩,否则加载动态库时会报错
|
|
|
|
|
doNotStrip "*/x86/libsdkcore.so"
|
|
|
|
|
doNotStrip "*/x86_64/libsdkcore.so"
|
|
|
|
|
doNotStrip "*/armeabi/libsdkcore.so"
|
|
|
|
|
doNotStrip "*/armeabi-v7a/libsdkcore.so"
|
|
|
|
|
doNotStrip "*/arm64-v8a/libsdkcore.so"
|
|
|
|
|
|
|
|
|
|
doNotStrip "*/x86/libfin-yuvutil.so"
|
|
|
|
|
doNotStrip "*/x86_64/libfin-yuvutil.so"
|
|
|
|
|
doNotStrip "*/armeabi/libfin-yuvutil.so"
|
|
|
|
|
doNotStrip "*/armeabi-v7a/libfin-yuvutil.so"
|
|
|
|
|
doNotStrip "*/arm64-v8a/libfin-yuvutil.so"
|
|
|
|
|
|
|
|
|
|
exclude 'META-INF/beans.xml'
|
|
|
|
|
}
|
2020-02-27 17:21:45 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
flutter {
|
|
|
|
|
source '../..'
|
|
|
|
|
}
|
2023-04-07 21:40:02 +08:00
|
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-21 09:26:56 +08:00
|
|
|
|
def sdk_version = "2.45.1"
|
|
|
|
|
compileOnly "com.finogeeks.lib:finapplet:${sdk_version}"
|
2023-04-07 21:40:02 +08:00
|
|
|
|
implementation "com.finogeeks.mop:plugins:${sdk_version}"
|
|
|
|
|
}
|