Skip to content

Commit

Permalink
Updated the Gradle from Groovy -> KTS
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Jul 29, 2023
1 parent 4d96dd0 commit 7abd21b
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 134 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 0 additions & 118 deletions app/build.gradle

This file was deleted.

120 changes: 120 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
plugins {
id ("com.android.application")
kotlin ("android")
id ("kotlin-parcelize")
id ("kotlin-kapt")
id ("com.google.dagger.hilt.android")
id ("com.google.gms.google-services")
id ("com.google.firebase.crashlytics")
}

android {
namespace = "com.aritra.notify"
compileSdk = 33

defaultConfig {
applicationId = "com.aritra.notify"
minSdk = 24
targetSdk = 33
versionCode = 1
versionName = "1.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary = true
}
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles (getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.3.2"
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
}

dependencies {

implementation ("androidx.core:core-ktx:1.10.1")
implementation (platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation ("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation ("androidx.activity:activity-compose:1.7.2")
implementation (platform("androidx.compose:compose-bom:2022.10.00"))
implementation ("androidx.compose.ui:ui")
implementation ("androidx.compose.ui:ui-graphics")
implementation ("androidx.compose.ui:ui-tooling-preview")
implementation ("androidx.compose.material3:material3")
implementation ("androidx.constraintlayout:constraintlayout-compose-android:1.1.0-alpha10")
testImplementation ("junit:junit:4.13.2")
androidTestImplementation ("androidx.test.ext:junit:1.1.5")
androidTestImplementation ("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation (platform("androidx.compose:compose-bom:2022.10.00"))
androidTestImplementation ("androidx.compose.ui:ui-test-junit4")
debugImplementation ("androidx.compose.ui:ui-tooling")
debugImplementation ("androidx.compose.ui:ui-test-manifest")

//Navigation
implementation ("androidx.navigation:navigation-compose:2.7.0-beta01")

// Accompanist
implementation ("com.google.accompanist:accompanist-systemuicontroller:0.28.0")

//Material 3
implementation ("androidx.compose.material3:material3:1.1.1")
implementation ("androidx.compose.material3:material3-window-size-class:1.1.1")

//Bottom sheet
implementation ("io.github.oleksandrbalan:modalsheet:0.5.0")

//Room
implementation ("androidx.room:room-runtime:2.5.2")
implementation ("androidx.lifecycle:lifecycle-extensions:2.2.0")
implementation ("androidx.room:room-ktx:2.5.2")
implementation ("androidx.compose.runtime:runtime-livedata:1.4.3")
annotationProcessor ("androidx.room:room-compiler:2.5.2")
kapt ("androidx.room:room-compiler:2.5.2")

// ViewModel
implementation ("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1")
implementation ("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
implementation ("androidx.lifecycle:lifecycle-livedata-ktx:2.6.1")
implementation ("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation ("androidx.core:core-ktx:1.10.1")

//hilt
implementation ("androidx.hilt:hilt-navigation-compose:1.0.0")
implementation ("com.google.dagger:hilt-android:2.44")
kapt ("com.google.dagger:hilt-compiler:2.44")

// DataStore
implementation ("androidx.datastore:datastore-preferences:1.0.0")

//Swipe
implementation ("me.saket.swipe:swipe:1.2.0")

// Splash API
implementation ("androidx.core:core-splashscreen:1.0.1")

// Firebase Crashlytics
implementation ("com.google.firebase:firebase-crashlytics-ktx:18.4.0")
implementation ("com.google.firebase:firebase-analytics-ktx:21.3.0")

}
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
13 changes: 0 additions & 13 deletions build.gradle

This file was deleted.

13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
buildscript {
dependencies {
classpath ("com.android.tools.build:gradle:3.4.0")
classpath ("com.google.gms:google-services:4.3.15")
classpath ("com.google.firebase:firebase-crashlytics-gradle:2.9.7")
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id ("com.android.application") version "8.0.2" apply false
id ("com.android.library") version "8.0.2" apply false
id ("org.jetbrains.kotlin.android") version "1.7.20" apply false
id ("com.google.dagger.hilt.android") version "2.44" apply false
}
2 changes: 1 addition & 1 deletion settings.gradle → settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dependencyResolutionManagement {
}
}
rootProject.name = "Notify"
include ':app'
include ("app")

0 comments on commit 7abd21b

Please sign in to comment.