pikapika/android/app/build.gradle

75 lines
2.2 KiB
Groovy
Raw Permalink Normal View History

2021-09-29 23:57:09 +00: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) {
2022-07-25 03:03:02 +00:00
flutterVersionCode = '3'
2021-09-29 23:57:09 +00:00
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
2022-07-25 03:03:02 +00:00
flutterVersionName = '1.5.7'
2021-09-29 23:57:09 +00:00
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
2024-04-02 10:29:05 +00:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
2022-10-14 17:54:50 +00:00
compileSdkVersion 33 // flutter.compileSdkVersion
2021-09-29 23:57:09 +00:00
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
2023-02-11 01:26:33 +00:00
applicationId "opensource.pikapika"
2022-08-11 05:54:05 +00:00
minSdkVersion 19 // flutter.minSdkVersion
targetSdkVersion 32 // flutter.targetSdkVersion
2021-09-29 23:57:09 +00: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-05-08 09:57:28 +00:00
debug {
applicationIdSuffix ".debug"
}
2021-09-29 23:57:09 +00:00
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.9'
implementation fileTree(dir: "../../go/mobile/lib", include: ["*.jar", "*.aar"])
}