@@ -4,9 +4,9 @@ plugins {
44 id ' com.android.library'
55 id ' org.jetbrains.kotlin.android'
66 id ' kotlin-parcelize'
7- id ' maven-publish'
87 id ' org.jetbrains.kotlin.plugin.serialization'
98 id ' kotlin-kapt'
9+ id ' maven-publish'
1010}
1111
1212android {
@@ -30,7 +30,7 @@ android {
3030 it. buildConfigField ' String' , ' DEBUG_API_HOST' , ' null'
3131 }
3232 debug {
33- it. buildConfigField ' String' , ' DEBUG_API_HOST' , " \" ${ localProperties['debug.api.host']?: ""} \" "
33+ it. buildConfigField ' String' , ' DEBUG_API_HOST' , " \" ${ localProperties['debug.api.host'] ?: ""} \" "
3434 }
3535 }
3636 def date = new SimpleDateFormat (" yyyy-MM-dd" ). format(new Date ())
@@ -47,17 +47,11 @@ android {
4747 }
4848 buildFeatures {
4949 compose true
50+ buildConfig true
5051 }
5152 composeOptions {
5253 kotlinCompilerExtensionVersion kotlin_compiler_version
5354 }
54- sourceSets {
55- main {
56- kotlin {
57- srcDir(" $buildDir /generated/api" )
58- }
59- }
60- }
6155 gradle. taskGraph. whenReady {
6256 def task = it. getAllTasks(). find { t -> t. name. contains(' bundle' ) }
6357 if (task && task. name && (
@@ -105,7 +99,6 @@ dependencies {
10599 implementation " androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version "
106100 implementation " androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version "
107101
108-
109102 /* AppCompat*/
110103 implementation ' androidx.appcompat:appcompat:1.7.0'
111104
@@ -138,6 +131,8 @@ dependencies {
138131 testImplementation ' org.robolectric:robolectric:4.13'
139132}
140133
134+ def module_description = ' The core module is required by all other modules in the Flexa SDK. The Flexa SDK is a suite of prebuilt functionality that enables your wallet app to interface directly with Flexa-powered payment systems in-person and online'
135+
141136project. afterEvaluate {
142137 publishing {
143138 publications {
@@ -174,18 +169,5 @@ project.afterEvaluate {
174169 }
175170 }
176171 }
177- repositories {
178- maven {
179- name = " GitHubPackages"
180- url = uri(" https://maven.pkg.github.com/flexa/flexa-android" )
181- credentials {
182- def propertiesFile = rootProject. file(" local.properties" )
183- def localProperties = new Properties ()
184- localProperties. load(new FileInputStream (propertiesFile))
185- username = localProperties[' gpr.user' ] ?: " "
186- password = localProperties[' gpr.key' ] ?: " "
187- }
188- }
189- }
190172 }
191173}
0 commit comments