118 lines
5.1 KiB
Groovy
Executable File
118 lines
5.1 KiB
Groovy
Executable File
apply plugin: 'com.android.application'
|
|
apply plugin: 'realm-android'
|
|
apply plugin: 'kotlin-android'
|
|
//apply plugin: 'kotlin-android-extensions'
|
|
|
|
// Native apps previously hard-required `ontimekeystore.jks` (not committed in this repo).
|
|
// Fallback to the standard Android debug keystore so builds can still produce APKs locally.
|
|
def ontimeKeystoreFile = file('ontimekeystore.jks')
|
|
def defaultDebugKeystoreFile = file("${System.getProperty('user.home')}/.android/debug.keystore")
|
|
def hasOntimeKeystore = ontimeKeystoreFile.exists()
|
|
def signingStoreFile = hasOntimeKeystore ? ontimeKeystoreFile : defaultDebugKeystoreFile
|
|
def signingStorePassword = hasOntimeKeystore ? '123456@ontime' : 'android'
|
|
def signingKeyAlias = hasOntimeKeystore ? 'ontimekeystore' : 'androiddebugkey'
|
|
def signingKeyPassword = hasOntimeKeystore ? '123456@ontime' : 'android'
|
|
|
|
android {
|
|
namespace "id.ontime.customer"
|
|
signingConfigs {
|
|
debug {
|
|
// Use local ontime keystore (make sure this file exists in the app module)
|
|
storeFile signingStoreFile
|
|
storePassword signingStorePassword
|
|
keyAlias signingKeyAlias
|
|
keyPassword signingKeyPassword
|
|
}
|
|
}
|
|
compileSdk 34
|
|
|
|
defaultConfig {
|
|
applicationId "id.ontime.customer"
|
|
minSdkVersion 23
|
|
targetSdkVersion 34
|
|
versionCode 10
|
|
versionName '1.1.0'
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
multiDexEnabled true
|
|
}
|
|
productFlavors {
|
|
//
|
|
}
|
|
|
|
lintOptions {
|
|
checkReleaseBuilds false
|
|
abortOnError false
|
|
}
|
|
buildTypes {
|
|
debug {
|
|
signingConfig signingConfigs.debug
|
|
}
|
|
release {
|
|
// For now sign release with the debug config so the build works locally
|
|
signingConfig signingConfigs.debug
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
implementation('com.mikepenz:fastadapter:2.0.0@aar') {
|
|
transitive = true
|
|
}
|
|
|
|
//noinspection GradleCompatible
|
|
implementation 'com.google.android.gms:play-services-location:19.0.1'
|
|
implementation 'com.google.android.libraries.places:places:2.5.0'
|
|
implementation 'com.google.android.gms:play-services-maps:18.0.2'
|
|
implementation 'com.google.android.gms:play-services-auth:20.1.0'
|
|
implementation platform('com.google.firebase:firebase-bom:33.1.0')
|
|
implementation 'com.google.firebase:firebase-database'
|
|
implementation 'com.google.firebase:firebase-storage'
|
|
implementation 'com.google.firebase:firebase-messaging'
|
|
implementation 'com.google.firebase:firebase-auth'
|
|
implementation 'com.google.firebase:firebase-appcheck-playintegrity'
|
|
implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
|
|
implementation 'androidx.appcompat:appcompat:1.4.1'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
|
|
implementation 'com.google.guava:guava:25.0-android'
|
|
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
|
|
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
|
|
implementation 'me.relex:circleindicator:1.2.1@aar'
|
|
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
|
|
implementation 'com.facebook.shimmer:shimmer:0.1.0@aar'
|
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
|
|
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
|
|
implementation 'com.mobsandgeeks:android-saripaar:2.0.3'
|
|
implementation 'net.the4thdimension:audio-wife:1.0.3'
|
|
implementation 'org.greenrobot:eventbus:3.0.0'
|
|
implementation 'com.makeramen:roundedimageview:2.2.1'
|
|
implementation 'com.squareup.picasso:picasso:2.5.2'
|
|
implementation 'com.github.siyamed:android-shape-imageview:0.9.3'
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
|
implementation 'com.github.yesterselga:country-picker-android:1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
|
|
implementation 'com.wdullaer:materialdatetimepicker:3.2.0'
|
|
implementation 'org.jsoup:jsoup:1.11.3'
|
|
implementation "androidx.exifinterface:exifinterface:1.3.3"
|
|
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
// implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
|
|
implementation 'com.google.android.material:material:1.7.0-alpha01'
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
|
implementation 'com.google.android.play:core:1.10.3'
|
|
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|