selfprivacy.org.app/android/app/build.gradle

101 lines
2 KiB
Groovy
Raw Normal View History

plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
2020-11-29 20:07:46 +00:00
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
android {
namespace 'org.selfprivacy.app'
compileSdkVersion flutter.compileSdkVersion
2022-05-16 20:30:14 +00:00
ndkVersion flutter.ndkVersion
2020-11-29 20:07:46 +00:00
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
2022-05-16 20:30:14 +00:00
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
2022-05-16 20:30:14 +00:00
2020-11-29 20:07:46 +00:00
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
applicationId "org.selfprivacy.app"
2022-05-16 20:30:14 +00:00
minSdkVersion 21
targetSdkVersion 34
compileSdkVersion 34
2020-11-29 20:07:46 +00:00
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
debug {
2020-11-29 20:07:46 +00:00
2022-09-15 01:21:33 +00:00
}
profile {
2022-09-15 16:31:55 +00:00
}
release {
2020-11-29 20:07:46 +00:00
}
}
buildFeatures {
flavorDimensions = ["default"]
}
productFlavors {
fdroid {
dimension 'default'
applicationId "pro.kherel.selfprivacy"
}
production {
dimension 'default'
}
nightly {
dimension 'default'
applicationIdSuffix ".nightly"
versionCode project.getVersionCode()
versionName "nightly-" + project.getVersionCode()
}
}
2020-11-29 20:07:46 +00:00
}
flutter {
source '../..'
}
dependencies {}