mirror of
https://github.com/DJDoubleD/refreezer.git
synced 2026-01-15 08:22:55 -03:00
104 lines
3.1 KiB
Groovy
104 lines
3.1 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
id "kotlin-android"
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
}
|
|
|
|
def localProperties = new Properties()
|
|
def localPropertiesFile = rootProject.file('local.properties')
|
|
if (localPropertiesFile.exists()) {
|
|
localPropertiesFile.withReader('UTF-8') { reader ->
|
|
localProperties.load(reader)
|
|
}
|
|
}
|
|
|
|
def keystoreProperties = new Properties()
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
}
|
|
|
|
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 'r.r.refreezer'
|
|
compileSdk 34
|
|
//ndkVersion flutter.ndkVersion
|
|
ndkVersion "26.1.10909125"
|
|
buildFeatures.buildConfig = true
|
|
|
|
compileOptions {
|
|
// Flag to enable support for the new language APIs
|
|
coreLibraryDesugaringEnabled true
|
|
// Sets Java compatibility to Java 8
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
defaultConfig {
|
|
// You can update the following values to match your application needs.
|
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
|
applicationId "r.r.refreezer"
|
|
minSdk 21
|
|
targetSdk 34
|
|
versionCode flutterVersionCode.toInteger()
|
|
versionName flutterVersionName
|
|
}
|
|
|
|
signingConfigs {
|
|
release {
|
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
signingConfig signingConfigs.release
|
|
shrinkResources false
|
|
minifyEnabled false
|
|
}
|
|
debug {
|
|
applicationIdSuffix '.debug'
|
|
versionNameSuffix ' DEBUG'
|
|
}
|
|
}
|
|
|
|
/*externalNativeBuild {
|
|
ndkBuild {
|
|
path file('src/main/jni/Android.mk')
|
|
}
|
|
}*/
|
|
lint {
|
|
disable 'InvalidPackage'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation files('libs/extension-flac.aar') // Required for older Android version
|
|
implementation("androidx.activity:activity-ktx:1.9.0")
|
|
//implementation group: 'net.jthink', name: 'jaudiotagger', version: '3.0.1' // requires java 8 so no android 6
|
|
implementation group: 'net.jthink', name: 'jaudiotagger', version: '2.2.5'
|
|
implementation group: 'org.nanohttpd', name: 'nanohttpd', version: '2.3.1'
|
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
|
|
}
|
|
|
|
flutter {
|
|
source '../..'
|
|
}
|