Skip to content

Instantly share code, notes, and snippets.

@beyzanurakkuzu
Last active July 20, 2023 06:20
Show Gist options
  • Save beyzanurakkuzu/00014943f1b52e46ad37119bb82a7875 to your computer and use it in GitHub Desktop.
Save beyzanurakkuzu/00014943f1b52e46ad37119bb82a7875 to your computer and use it in GitHub Desktop.
build.gradle
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id "androidx.navigation.safeargs.kotlin"
id 'com.google.firebase.crashlytics'
id 'org.jetbrains.kotlin.android'
id 'kotlin-parcelize'
id 'com.google.gms.google-services'
}
def Dev = "YY"
def Prod = "XX"
android {
namespace "com.xx.android"
compileSdkVersion 33
signingConfigs {
dev {
storeFile file("../config/demoJks")
storePassword 'demo1234'
keyAlias 'key0'
keyPassword 'demo1234'
}
prod {
storeFile file("../config/demoJks")
storePassword 'demo1234'
keyAlias 'key0'
keyPassword 'demo1234'
}
}
defaultConfig {
applicationId "com.xx.android"
minSdkVersion 23
targetSdkVersion 33
versionCode 1063
versionName "1.0.2"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "PLAY_STORE_APP_ID", "\"com.xx.android\"")
flavorDimensions "environment"
}
buildTypes {
debug {
zipAlignEnabled true
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.prod
}
}
productFlavors {
dev {
applicationId "com.xx.android"
applicationIdSuffix ".dev"
dimension "environment"
resValue "string", "env_name", Dev
manifestPlaceholders = [appLabel: Dev]
buildConfigField 'String', 'BASE_URL', "\"https://\""
}
prod {
applicationId "com.xx.android"
resValue "string", "env_name", Prod //Configure this flavor specific app name published in Play Store
manifestPlaceholders = [appLabel: Prod]
buildConfigField 'String', 'BASE_URL', "\"https://\""
}
}
packagingOptions {
resources {
excludes += ['META-INF/services/javax.annotation.processing.Processor']
}
}
buildFeatures {
viewBinding true
dataBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
lint {
disable 'ContentDescription'
}
composeOptions {
kotlinCompilerExtensionVersion = "1.4.3"
}
}
dependencies {
implementation "androidx.core:core-ktx:1.10.1"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "com.google.android.material:material:1.6.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.fragment:fragment-ktx:1.5.7"
implementation "com.google.dagger:hilt-android:2.46"
kapt "com.google.dagger:hilt-compiler:2.46"
implementation "com.squareup.retrofit2:retrofit:2.7.1"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:0.9.2"
implementation "com.google.code.gson:gson:2.8.7"
implementation "com.squareup.retrofit2:converter-gson:2.6.1"
implementation "androidx.navigation:navigation-fragment-ktx:2.5.3"
implementation "androidx.navigation:navigation-ui-ktx:2.5.3"
implementation "com.github.bumptech.glide:glide:4.12.0"
kapt "com.github.bumptech.glide:compiler:4.12.0"
implementation "jp.wasabeef:glide-transformations:4.3.0"
implementation "jp.co.cyberagent.android:gpuimage:2.1.0"
implementation "de.hdodenhof:circleimageview:3.1.0"
implementation "com.jakewharton.timber:timber:4.7.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
implementation "com.airbnb.android:lottie:3.7.0"
//Firebase
implementation platform("com.google.firebase:firebase-bom:31.1.1")
implementation "com.google.firebase:firebase-analytics:21.2.0"
implementation "com.google.firebase:firebase-crashlytics:18.3.2"
implementation "com.google.firebase:firebase-messaging-ktx"
testImplementation "androidx.arch.core:core-testing:2.1.0"
testImplementation "junit:junit:4.13"
androidTestImplementation "junit:junit:4.13"
androidTestImplementation "androidx.test:rules:1.1.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.1.0"
androidTestImplementation "com.android.support.test.espresso:espresso-contrib:3.1.0"
kapt("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.6.0")
implementation "com.squareup.okhttp3:okhttp:4.8.1"
implementation "com.squareup.okhttp3:logging-interceptor:4.8.0"
implementation "com.squareup.picasso:picasso:2.8"
def camerax_version = "1.1.0-beta01"
implementation "androidx.camera:camera-core:$camerax_version"
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-lifecycle:$camerax_version"
implementation "androidx.camera:camera-video:$camerax_version"
implementation "androidx.camera:camera-view:$camerax_version"
implementation "androidx.camera:camera-extensions:$camerax_version"
implementation "androidx.camera:camera-lifecycle:$camerax_version"
implementation "com.google.mlkit:face-detection:16.1.5"
def billing_version = "5.1.0"
implementation("com.android.billingclient:billing-ktx:$billing_version")
//Chucker
//https://github.com/ChuckerTeam/chucker
debugImplementation("com.github.chuckerteam.chucker:library:3.5.2")
releaseImplementation("com.github.chuckerteam.chucker:library-no-op:3.5.2")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment