Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
alias libs.plugins.android.application
alias libs.plugins.kotlin.android
alias libs.plugins.compose.compiler
}

android {
Expand Down Expand Up @@ -55,22 +56,21 @@ android {
}

dependencies {
implementation "com.google.android.material:material:$material_version"
implementation libs.android.material

implementation "androidx.core:core-ktx:$core_ktx_version"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
implementation 'androidx.compose.material3:material3:1.2.1'
implementation libs.androidx.ktx
implementation libs.androidx.lifecycle
implementation libs.androidx.activity.compose
implementation libs.androidx.compose.ui
implementation libs.androidx.compose.preview
implementation libs.androidx.compose.material3

implementation project(path: ':checkout-android')
// implementation "com.khalti:checkout-android:$khaltiVersionName"

testImplementation "junit:junit:$junit_version"
androidTestImplementation "androidx.test.ext:junit:$junit_ext_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
testImplementation libs.junit
androidTestImplementation libs.junit.ext
androidTestImplementation libs.expresso
androidTestImplementation libs.androix.compose.test
debugImplementation libs.androix.compose.tooling
debugImplementation libs.androix.compose.manifest
}
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.22' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
alias libs.plugins.kotlin.android apply false
alias libs.plugins.nexus.plugin
alias libs.plugins.compose.compiler apply false
}

apply from: "${rootDir}/scripts/publish-root.gradle"
apply from: 'metadata.gradle'
apply from: 'dependencies.gradle'
apply from: 'metadata.gradle'
31 changes: 14 additions & 17 deletions checkout-android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
alias libs.plugins.android.library
alias libs.plugins.kotlin.android
id 'kotlin-parcelize'
alias libs.plugins.compose.compiler
}

android {
Expand Down Expand Up @@ -48,28 +49,24 @@ android {

dependencies {
// ---------- Api ----------
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:logging-interceptor:4.12.0'
implementation libs.retrofit
implementation libs.converter.gson
implementation libs.logging.interceptor

// ---------- Compose ----------
def composeBom = platform('androidx.compose:compose-bom:2024.02.02')
implementation platform('androidx.compose:compose-bom:2024.02.02')
androidTestImplementation platform('androidx.compose:compose-bom:2024.02.02')

implementation 'androidx.compose.material3:material3'
implementation 'androidx.activity:activity-compose:1.8.2'
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation libs.androidx.compose.material3
implementation libs.androidx.activity.compose
implementation libs.androidx.material.icons.extended

// Compose preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
implementation libs.androidx.ui.tooling.preview
debugImplementation libs.androidx.ui.tooling

// ---------- Test ----------
testImplementation "junit:junit:$junit_version"
testImplementation libs.junit

androidTestImplementation "androidx.test.ext:junit:$junit_ext_version"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version"
androidTestImplementation libs.junit.ext
androidTestImplementation libs.expresso
}

ext {
Expand Down
45 changes: 45 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[versions]
ktx="1.16.0"
lifecycle = "2.9.2"
activityCompose = '1.10.1'
compose = "1.8.3"
loggingInterceptor="4.12.0"
material = "1.12.0"
material3 = '1.3.2'
junit = '4.13.2'
junitExt = '1.2.1'
expresso = '3.6.1'
androidGradlePlugin = '8.10.1'
kotlinGradlePlugin = '2.1.0'
materialIconsExtended="1.7.8"
nexusPublishPlugin = '1.1.0'
retrofit="2.9.0"
kotlin = "2.0.0"

[libraries]
android-material = {group = "com.google.android.material", name = "material", version.ref = "material"}
androidx-ktx = {group = "androidx.core", name = "core-ktx", version.ref = "ktx"}
androidx-lifecycle = {group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle"}
androidx-activity-compose = {group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose"}
androidx-compose-ui = {group = "androidx.compose.ui", name = "ui", version.ref = "compose"}
androidx-compose-preview = {group = "androidx.compose.ui", name = "ui-tooling-preview", version.ref = "compose"}
androidx-compose-material3 = {group = "androidx.compose.material3", name = "material3", version.ref = "material3"}
androidx-material-icons-extended = { module = "androidx.compose.material:material-icons-extended", version.ref = "materialIconsExtended" }
androidx-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
androidx-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
junit = {group = "junit", name = "junit", version.ref = "junit"}
junit-ext = {group="androidx.test.ext", name="junit", version.ref="junitExt"}
expresso = {group="androidx.test.espresso", name="espresso-core", version.ref="expresso"}
androix-compose-test = {group = "androidx.compose.ui", name = "ui-test-junit4", version.ref = "compose"}
androix-compose-tooling = {group = "androidx.compose.ui", name = "ui-tooling", version.ref = "compose"}
androix-compose-manifest = {group = "androidx.compose.ui", name = "ui-test-manifest", version.ref = "compose"}
logging-interceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "loggingInterceptor" }
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }

[plugins]
android-application = {id = "com.android.application", version.ref = "androidGradlePlugin"}
android-library = {id = "com.android.library", version.ref = "androidGradlePlugin"}
kotlin-android = {id = "org.jetbrains.kotlin.android", version.ref = "kotlinGradlePlugin"}
nexus-plugin = {id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexusPublishPlugin"}
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
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 @@
#Mon Oct 31 20:08:12 NPT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
4 changes: 2 additions & 2 deletions metadata.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ ext {
khaltiVersionName = '0.07.00'

libraryMinSdk = 21
libraryCompileSdk = 34
libraryTargetSdk = 34
libraryCompileSdk = 35
libraryTargetSdk = 35
}