Skip to content

Commit

Permalink
Merge pull request #73 from Aditya-gupta99/fix_release
Browse files Browse the repository at this point in the history
  • Loading branch information
therajanmaurya authored Aug 15, 2023
2 parents f6479ef + 6457a1b commit d52b409
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 23 deletions.
17 changes: 11 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'org.mifos'
compileSdk rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
Expand All @@ -29,15 +30,19 @@ android {
packagingOptions {
exclude 'META-INF/core_release.kotlin_module'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}

}

dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.multidex:multidex:$rootProject.multidexVersion"
implementation ("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"){
force true
}
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.appcompat:appcompat:$rootProject.appCompatVersion"
testImplementation "junit:junit:$rootProject.jUnitVersion"
androidTestImplementation "androidx.test.ext:junit:$rootProject.androidJUnitVersion"
Expand All @@ -64,7 +69,7 @@ dependencies {
implementation "com.squareup.okhttp3:okhttp:$okHttp3Version"
implementation "com.squareup.okhttp3:logging-interceptor:$okHttp3Version"

implementation project(path: ':core')
implementation project(':core')

// fineract dependency
implementation ("com.github.openMF:fineract-client:$fineractClientVersion")
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:8.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down Expand Up @@ -53,7 +53,7 @@ ext {
retrofitVersionLatest = '2.9.0'

// okHttp3 version
okHttp3Version = '4.9.2'
okHttp3Version = '4.11.0'

// preference version
preference = '1.2.1'
Expand All @@ -62,7 +62,7 @@ ext {
rxJavaVersion = '1.3.8'

// rxJavaAndroid version
rxAndroidVersion = '1.1.0'
rxAndroidVersion = '1.2.1'

// fineract version
fineractClientVersion = '2.0.3'
Expand Down
28 changes: 25 additions & 3 deletions core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'maven-publish'

android {
compileSdkVersion 33
namespace 'org.mifos.core'
compileSdk 33
buildToolsVersion "29.0.3"

defaultConfig {
Expand All @@ -26,10 +28,16 @@ android {
packagingOptions {
exclude 'META-INF/core_release.kotlin_module'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.appcompat:appcompat:$rootProject.appCompatVersion"
testImplementation "junit:junit:$rootProject.jUnitVersion"
androidTestImplementation "androidx.test.ext:junit:$rootProject.androidJUnitVersion"
Expand Down Expand Up @@ -57,9 +65,23 @@ dependencies {
implementation "com.squareup.okhttp3:logging-interceptor:$okHttp3Version"

//Shared Preferences dependency
implementation "androidx.preference:preference:$preference"
implementation "androidx.preference:preference-ktx:$preference"

// fineractClient dependency
implementation ("com.github.openMF:fineract-client:$fineractClientVersion")

}

publishing {
publications {
release(MavenPublication) {
groupId = 'com.github.openMF'
artifactId = 'mifos-android-sdk-arch'
version = '1.0.6'

afterEvaluate {
from components.release
}
}
}
}
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 --add-opens java.base/java.io=ALL-UNNAMED
# added --add-opens java.base/java.io=ALL-UNNAMED to resolve error module java.base does not "opens java.io" to unnamed module
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
9 changes: 1 addition & 8 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
jdk:
- openjdk17
before_install:
- sdk install java 17.0.3-tem
- sdk use java 17.0.3-tem
- sdk install maven
- mvn -v
install:
- mvn install -Dmaven.javadoc.skip=true -DskipTests
- openjdk17

0 comments on commit d52b409

Please sign in to comment.