You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
4.0 KiB
Groovy
116 lines
4.0 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
id "kotlin-android"
|
|
id "com.google.gms.google-services"
|
|
id "dev.flutter.flutter-gradle-plugin"
|
|
|
|
}
|
|
def keystoreProperties = new Properties()
|
|
def keystorePropertiesFile = rootProject.file('key.properties')
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
}
|
|
|
|
configurations.all {
|
|
c ->
|
|
c.resolutionStrategy.eachDependency {
|
|
DependencyResolveDetails dependency ->
|
|
println dependency.requested.group
|
|
if (dependency.requested.group == 'org.bouncycastle') {
|
|
dependency.useTarget 'org.bouncycastle:bcprov-jdk15to18:1.68'
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
android {
|
|
namespace = "sa.edu.kku.kkuMcApp"
|
|
compileSdkVersion 35
|
|
ndkVersion = "27.0.12077973"
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11 // Changed from VERSION_21
|
|
targetCompatibility JavaVersion.VERSION_11 // Changed from VERSION_21
|
|
coreLibraryDesugaringEnabled true // (Optional, for using Java 8+ APIs on older Android versions)
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = '11' // Changed from '21'
|
|
}
|
|
|
|
defaultConfig {
|
|
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
applicationId "sa.edu.kku.kkuMcApp"
|
|
minSdkVersion 26
|
|
targetSdk = flutter.targetSdkVersion
|
|
versionCode = flutter.versionCode
|
|
versionName = flutter.versionName
|
|
multiDexEnabled true
|
|
|
|
}
|
|
|
|
|
|
signingConfigs {
|
|
release {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
buildTypes {
|
|
release {
|
|
shrinkResources false // Optional: Set to true to shrink resources
|
|
minifyEnabled false // Set to true to enable code shrinking and obfuscation
|
|
signingConfig signingConfigs.release
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
packaging {
|
|
jniLibs {
|
|
useLegacyPackaging true
|
|
}
|
|
}
|
|
}
|
|
|
|
flutter {
|
|
source '../..'
|
|
}
|
|
|
|
repositories {
|
|
maven { url 'https://developer.huawei.com/repo/' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation platform("com.google.firebase:firebase-bom:33.14.0") // Firebase BoM
|
|
implementation "com.google.firebase:firebase-analytics" // Firebase Analytics
|
|
implementation"com.google.firebase:firebase-messaging"// Firebase Messaging
|
|
implementation 'pub.devrel:easypermissions:3.0.0'
|
|
implementation 'com.google.guava:guava:27.0.1-android'
|
|
// Dependency on local binaries
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
// implementation "org.jetbrains.anko:anko-commons:0.10.4"
|
|
implementation 'com.github.kittinunf.fuel:fuel:2.3.0' //for JVM
|
|
implementation 'com.github.kittinunf.fuel:fuel-android:2.3.0'
|
|
implementation 'com.google.android.gms:play-services-location:17.1.0'//for Android
|
|
implementation 'com.google.android.gms:play-services-basement:17.5.0'
|
|
implementation "com.opentok.android:opentok-android-sdk:2.21.4"
|
|
implementation 'com.facebook.stetho:stetho:1.5.1'
|
|
implementation 'com.facebook.stetho:stetho-urlconnection:1.5.1'
|
|
implementation 'androidx.core:core-ktx:1.6.0'
|
|
implementation 'androidx.appcompat:appcompat:1.3.1'
|
|
androidTestImplementation "androidx.test:core:1.4.0"
|
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.5'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10"
|
|
}
|