-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
201 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android-extensions' | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-parcelize' | ||
apply plugin: 'kotlin-android' | ||
apply from: 'maven-push.gradle' | ||
apply plugin: 'kotlin-kapt' | ||
|
||
ext { | ||
PUBLISH_GROUP_ID = 'com.emerchantpay.gateway' | ||
PUBLISH_VERSION = '1.2.8' | ||
PUBLISH_ARTIFACT_ID = 'genesis-android' | ||
PUBLISH_DESCRIPTION = 'Genesis Android SDK' | ||
PUBLISH_URL = 'https://github.com/GenesisGateway/android_sdk' | ||
PUBLISH_LICENSE_NAME = 'MIT License' | ||
PUBLISH_LICENSE_URL = 'https://opensource.org/licenses/MIT' | ||
PUBLISH_DEVELOPER_ID = 'GenesisGateway' | ||
PUBLISH_DEVELOPER_NAME = 'emerchantpay Ltd.' | ||
PUBLISH_DEVELOPER_EMAIL = '[email protected]' | ||
PUBLISH_SCM_CONNECTION = 'scm:[email protected]:GenesisGateway/android_sdk.git' | ||
PUBLISH_SCM_DEVELOPER_CONNECTION = 'scm:[email protected]:GenesisGateway/android_sdk.git' | ||
PUBLISH_SCM_URL = 'https://github.com/GenesisGateway/android_sdk/tree/master' | ||
} | ||
|
||
apply from: "${rootProject.projectDir}/scripts/maven-push.gradle" | ||
|
||
android { | ||
compileSdkVersion 30 | ||
compileSdkVersion 31 | ||
defaultConfig { | ||
minSdkVersion 19 | ||
targetSdkVersion 30 | ||
targetSdkVersion 31 | ||
versionCode 1 | ||
versionName "1.2.7" | ||
versionName "1.2.8" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
|
@@ -18,11 +36,21 @@ android { | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
buildToolsVersion '28.0.3' | ||
packagingOptions { | ||
exclude("META-INF/LICENSE*") | ||
resources.excludes += "DebugProbesKt.bin" | ||
} | ||
buildToolsVersion '30.0.3' | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
kotlinOptions { | ||
freeCompilerArgs = ["-Xallow-result-return-type"] | ||
jvmTarget = '1.8' | ||
} | ||
|
||
dexOptions { | ||
} | ||
|
||
|
@@ -37,21 +65,21 @@ android { | |
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'androidx.appcompat:appcompat:1.2.0' | ||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | ||
implementation 'com.google.android.material:material:1.2.1' | ||
implementation 'androidx.multidex:multidex:2.0.1' | ||
implementation 'com.android.support:multidex:1.0.3' | ||
testImplementation 'junit:junit:4.13-rc-2' | ||
testImplementation 'org.mockito:mockito-core:2.28.2' | ||
testImplementation 'org.mockito:mockito-inline:2.8.47' | ||
testImplementation 'org.robolectric:robolectric:3.8' | ||
testImplementation 'io.mockk:mockk:1.9.3.kotlin12' | ||
androidTestImplementation 'androidx.test:runner:1.3.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.3.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-contrib:3.3.0' | ||
androidTestImplementation 'androidx.test.espresso:espresso-web:3.3.0' | ||
implementation "androidx.appcompat:appcompat:$androidx_appcompat_version" | ||
implementation "androidx.constraintlayout:constraintlayout:$androidx_constraintlayout_version" | ||
implementation "com.google.android.material:material:$android_material_version" | ||
implementation "androidx.multidex:multidex:$androidx_multidex_version" | ||
implementation "com.android.support:multidex:$androidx_multidex_version" | ||
testImplementation "junit:junit:$junit_version" | ||
testImplementation "org.mockito:mockito-core:$mockito_core_version" | ||
testImplementation "org.mockito:mockito-inline:$mockito_inline_version" | ||
testImplementation "org.robolectric:robolectric:$robolectric_version" | ||
testImplementation "io.mockk:mockk:$mockk_version" | ||
androidTestImplementation "androidx.test:runner:$androidx_test_runner_version" | ||
androidTestImplementation "androidx.test.espresso:espresso-core:$androidx_espresso_version" | ||
androidTestImplementation "androidx.test.espresso:espresso-intents:$androidx_espresso_version" | ||
androidTestImplementation "androidx.test.espresso:espresso-contrib:$androidx_espresso_version" | ||
androidTestImplementation "androidx.test.espresso:espresso-web:$androidx_espresso_version" | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
} | ||
repositories { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,34 +11,13 @@ | |
# The setting is particularly useful for tweaking memory settings. | ||
android.enableJetifier=true | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx1536m | ||
org.gradle.jvmargs=-Xmx2048m | ||
|
||
# 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 | ||
# org.gradle.parallel=true | ||
|
||
# Github Environment variables | ||
VERSION_NAME=1.2.7 | ||
VERSION_CODE=1 | ||
GROUP=com.emerchantpay.gateway | ||
|
||
POM_DESCRIPTION=Genesis Android SDK | ||
POM_URL=https://github.com/GenesisGateway/android_sdk | ||
POM_SCM_URL=https://github.com/GenesisGateway/android_sdk | ||
POM_SCM_CONNECTION=scm:[email protected]:GenesisGateway/android_sdk.git | ||
POM_SCM_DEV_CONNECTION=scm:[email protected]:GenesisGateway/android_sdk.git | ||
POM_LICENCE_NAME=MIT License | ||
POM_LICENCE_URL=https://opensource.org/licenses/MIT | ||
POM_LICENCE_DIST=https://github.com/GenesisGateway/android_sdk/blob/master/LICENSE | ||
POM_DEVELOPER_ID=GenesisGateway | ||
POM_DEVELOPER_NAME=emerchantpay Ltd. | ||
|
||
# POM Environment variables | ||
POM_NAME=GenesisAndroid | ||
POM_ARTIFACT_ID=genesis-android | ||
POM_PACKAGING=aar | ||
|
||
# Nexus variables | ||
NEXUS_USERNAME=sonatype_username | ||
NEXUS_PASSWORD=sonatype_password | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.