Skip to content

Commit

Permalink
feat: build.gradle grovvy to dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
therajanmaurya committed Jan 20, 2024
1 parent ada9ab4 commit eed2c75
Show file tree
Hide file tree
Showing 9 changed files with 242 additions and 262 deletions.
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.gms) apply false
//alias(libs.plugins.butterknife) apply false
alias(libs.plugins.hilt.gradle) apply false
}
}
78 changes: 0 additions & 78 deletions core/build.gradle

This file was deleted.

81 changes: 81 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.kotlin.parcelize)
}

apply(from = "../config/quality/quality.gradle")

group = "com.github.ankurs287"

android {
compileSdk = libs.versions.compileSdk.get().toInt()
namespace = "org.mifos.mobilewallet.core"
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
getByName("debug") {
isMinifyEnabled = false
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

composeOptions {
kotlinCompilerExtensionVersion = "1.5.7"
}

kotlinOptions {
jvmTarget = "17"
}

buildFeatures{
dataBinding = true
buildConfig = true
}

lint {
abortOnError = false
disable += "InvalidPackage"
}
}

dependencies {
implementation("androidx.appcompat:appcompat:1.6.1")

implementation("com.google.dagger:hilt-android:2.48")
kapt("com.google.dagger:hilt-compiler:2.48")

implementation(libs.squareup.retrofit2) {
// exclude Retrofit’s OkHttp peer-dependency module and define your own module import
exclude(module = "okhttp")
}
implementation(libs.squareup.retrofit.adapter.rxjava)
implementation(libs.squareup.retrofit.converter.gson)
implementation(libs.squareup.okhttp)
implementation(libs.squareup.logging.interceptor)

implementation(libs.reactivex.rxjava.android)
implementation(libs.reactivex.rxjava)

implementation(libs.jetbrains.kotlin.jdk7)

testImplementation(libs.junit)
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.0") {
exclude(group = "com.android.support", module = "support-annotations")
}
}

kapt {
correctErrorTypes = true
}
2 changes: 1 addition & 1 deletion core/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# By default, the flags in this file are appended to flags specified
# in /home/naman/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# directive in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
30 changes: 2 additions & 28 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,21 @@ androidxComposeCompiler = "1.5.1"
androidxCore = "1.10.1"
androidxHilt = "1.1.0-alpha01"
androidxLifecycle = "2.6.1"
androidxNavigation = "2.7.0"
androidxRoom = "2.5.1"
androidxTestCore = "1.5.0"
androidxTestExt = "1.1.5"
androidxTestRunner = "1.5.2"
coroutines = "1.7.3"
hilt = "2.47"
junit = "4.13.2"
kotlin = "1.9.20"
ksp = "1.9.0-1.0.12"
amplify = "2.11.1"
coreLibraryDesugaring = "1.1.5"
androidxWork = "2.9.0-alpha01"
hiltWorker = "1.0.0"
coil = "2.4.0"
okhttp = "4.10.0"
lottie = "6.1.0"
firebaseBom = "31.2.0"
kotlin = "1.9.21"
ksp = "1.9.21-1.0.15"
firebaseCrashlyticsPlugin = "2.9.2"
gmsPlugin = "4.3.14"
butterknifePlugin = "10.2.3"
secrets = "2.0.1"
androidxDataStore = "1.0.0"
gmsAdmob = "22.0.0"
userMessagingPlatform = "2.1.0"

## Sdk and tools
buildToolsVersion = "30.0.3"
composeVersion = "1.5.4"
lifecycleVersion = "2.6.2"
lifecycleExtensionsVersion = "2.2.0"
activityVersion = "1.5.0"
fragmentVersion = "1.5.0"

## App dependencies
supportLibraryVersion = "28.0.0"
retrofitVersion = "2.2.0"
okHttp3Version = "3.6.0"
butterKnifeVersion = "10.2.3"
dbflowVersion = "3.1.1"
espressoVersion = "2.2.2"
rxandroidVersion = "1.1.0"
rxjavaVersion = "1.1.4"
junitVersion = "4.12"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Mar 11 18:59:41 IST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
148 changes: 0 additions & 148 deletions mifospay/build.gradle

This file was deleted.

Loading

0 comments on commit eed2c75

Please sign in to comment.