-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
Develop
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,6 @@ | |
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
|
||
apiKey.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
import java.util.Properties | ||
|
||
val apiKeyPropertiesFile = project.rootProject.file("apiKey.properties") | ||
val apiKeyProperties = Properties() | ||
apiKeyProperties.load(apiKeyPropertiesFile.inputStream()) | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
id("kotlin-kapt") | ||
id("kotlin-parcelize") | ||
id("com.google.gms.google-services") | ||
id("com.google.firebase.firebase-perf") | ||
id("com.google.firebase.crashlytics") | ||
id("androidx.navigation.safeargs") | ||
id("com.google.devtools.ksp") | ||
id("com.getkeepsafe.dexcount") | ||
} | ||
|
||
android { | ||
|
||
signingConfigs { | ||
create("config") { | ||
keyAlias = project.properties["KEY_ALIAS"].toString() | ||
keyPassword = project.properties["KEY_PASSWORD"].toString() | ||
storeFile = file("../-yusuf.keystore") | ||
storePassword = project.properties["STORE_PASSWORD"].toString() | ||
} | ||
} | ||
|
||
namespace = "com.yoesuv.infomadiun" | ||
compileSdk = project.properties["targetApiLevel"].toString().toInt() | ||
|
||
defaultConfig { | ||
val keyMaps = apiKeyProperties["MAPS_API_KEY"].toString() | ||
val keyDirections = apiKeyProperties["DIRECTION_API_KEY"].toString() | ||
|
||
applicationId = "com.yoesuv.infomadiun" | ||
minSdk = project.properties["minApiLevel"].toString().toInt() | ||
targetSdk = project.properties["targetApiLevel"].toString().toInt() | ||
versionCode = project.properties["versionCode"].toString().toInt() | ||
versionName = project.properties["versionName"].toString() | ||
vectorDrawables { | ||
useSupportLibrary = true | ||
} | ||
setProperty("archivesBaseName", "$applicationId-v$versionCode($versionName)") | ||
resValue("string", "MAPS_API_KEY", keyMaps) | ||
resValue("string", "DIRECTION_API_KEY", keyDirections) | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
signingConfig = signingConfigs.getByName("config") | ||
} | ||
release { | ||
isMinifyEnabled = true | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
signingConfig = signingConfigs.getByName("config") | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
sourceSets { | ||
getByName("main") { | ||
res.srcDirs("src/main/res") | ||
res.srcDirs("src/main/res-menu") | ||
res.srcDirs("src/main/res-menu/gallery") | ||
res.srcDirs("src/main/res-menu/listplace") | ||
res.srcDirs("src/main/res-menu/maps") | ||
res.srcDirs("src/main/res-menu/other") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
dataBinding = true | ||
buildConfig = true | ||
} | ||
flavorDimensions.add("default") | ||
|
||
packaging { | ||
resources { | ||
excludes += "/META-INF/{AL2.0,LGPL2.1}" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
val playServiceMapsVersion: String by project | ||
val playServiceLocationVersion: String by project | ||
val lifeCycleVersion: String by project | ||
val navigationVersion: String by project | ||
val roomVersion: String by project | ||
val viewPager2Version: String by project | ||
val retrofitVersion: String by project | ||
val httpLoggingVersion: String by project | ||
val glideVersion: String by project | ||
val googleDirectionLibraryVersion: String by project | ||
val sspVersion: String by project | ||
val sdpVersion: String by project | ||
|
||
implementation("androidx.core:core-ktx:1.12.0") | ||
implementation ("androidx.appcompat:appcompat:1.6.1") | ||
implementation("com.google.android.material:material:1.11.0") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.4") | ||
|
||
testImplementation("junit:junit:4.13.2") | ||
androidTestImplementation("androidx.test.ext:junit:1.1.5") | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") | ||
androidTestImplementation("androidx.test.espresso:espresso-contrib:3.5.1") | ||
|
||
implementation("com.google.android.gms:play-services-maps:$playServiceMapsVersion") | ||
implementation("com.google.android.gms:play-services-location:$playServiceLocationVersion") | ||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifeCycleVersion") | ||
implementation("androidx.navigation:navigation-fragment-ktx:$navigationVersion") | ||
implementation("androidx.navigation:navigation-ui-ktx:$navigationVersion") | ||
implementation("androidx.room:room-runtime:$roomVersion") | ||
ksp("androidx.room:room-compiler:$roomVersion") | ||
implementation("androidx.room:room-ktx:$roomVersion") | ||
implementation("androidx.viewpager2:viewpager2:$viewPager2Version") | ||
|
||
implementation(platform("com.google.firebase:firebase-bom:32.8.1")) | ||
implementation("com.google.firebase:firebase-perf") | ||
implementation("com.google.firebase:firebase-crashlytics") | ||
implementation("com.google.firebase:firebase-analytics") | ||
|
||
implementation("com.squareup.retrofit2:retrofit:$retrofitVersion") | ||
implementation("com.squareup.retrofit2:converter-gson:$retrofitVersion") | ||
implementation("com.squareup.okhttp3:logging-interceptor:$httpLoggingVersion") | ||
|
||
implementation("com.github.bumptech.glide:glide:$glideVersion") | ||
ksp("com.github.bumptech.glide:compiler:$glideVersion") | ||
implementation("com.akexorcist:google-direction-library:$googleDirectionLibraryVersion") | ||
implementation("com.intuit.ssp:ssp-android:$sspVersion") | ||
implementation("com.intuit.sdp:sdp-android:$sdpVersion") | ||
} |