-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
188 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
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") | ||
} | ||
|
||
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.9.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.1.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") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id("com.android.application") version "8.2.2" apply false | ||
id("org.jetbrains.kotlin.android") version "1.9.0" apply false | ||
id("com.google.gms.google-services") version "4.4.1" apply false | ||
id("com.google.firebase.firebase-perf") version "1.4.2" apply false | ||
id("com.google.firebase.crashlytics") version "2.9.9" apply false | ||
id("com.google.devtools.ksp") version "1.9.0-1.0.13" apply false | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
} | ||
dependencies { | ||
val nav_version = "2.7.7" | ||
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pluginManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
} | ||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
rootProject.name = "Explore Madiun" | ||
include(":app") |