Skip to content

Commit ab04088

Browse files
- Fix gradle files
1 parent 6639074 commit ab04088

File tree

5 files changed

+9
-62
lines changed

5 files changed

+9
-62
lines changed

androidposintegration/build.gradle

Lines changed: 2 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ android {
3939
buildConfigField "String", "ACTION_INFO", "\"${intentPrefix}${actionInfoRequest}\""
4040

4141
}
42-
43-
crt {
44-
debuggable false
45-
def env = ".crt"
46-
def intentPrefix = "com.payplaza"
47-
buildConfigField "String", "ACTION_TRANSACTION", "\"${intentPrefix}${env}${actionTrans}\""
48-
buildConfigField "String", "ACTION_STATUSES", "\"${intentPrefix}${env}${actionStatusesRequest}\""
49-
buildConfigField "String", "ACTION_INFO", "\"${intentPrefix}${env}${actionInfoRequest}\""
50-
51-
}
52-
5342
debug {
5443
debuggable true
5544
def env = ".dev"
@@ -58,15 +47,6 @@ android {
5847
buildConfigField "String", "ACTION_STATUSES", "\"${intentPrefix}${env}${actionStatusesRequest}\""
5948
buildConfigField "String", "ACTION_INFO", "\"${intentPrefix}${env}${actionInfoRequest}\""
6049
}
61-
62-
local {
63-
debuggable true
64-
def env = ".local"
65-
def intentPrefix = "com.payplaza"
66-
buildConfigField "String", "ACTION_TRANSACTION", "\"${intentPrefix}${env}${actionTrans}\""
67-
buildConfigField "String", "ACTION_STATUSES", "\"${intentPrefix}${env}${actionStatusesRequest}\""
68-
buildConfigField "String", "ACTION_INFO", "\"${intentPrefix}${env}${actionInfoRequest}\""
69-
}
7050
}
7151
compileOptions {
7252
sourceCompatibility JavaVersion.VERSION_1_8
@@ -75,12 +55,6 @@ android {
7555
kotlinOptions {
7656
jvmTarget = '1.8'
7757
}
78-
79-
testOptions.unitTests.all {
80-
testLogging {
81-
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
82-
}
83-
}
8458
}
8559

8660
apply plugin: 'com.android.library'
@@ -112,43 +86,19 @@ dependencies {
11286
afterEvaluate {
11387
publishing {
11488
publications {
115-
// Creates a Maven publication called "release".
11689
mavenAar(MavenPublication) {
117-
groupId = "com.payplaza.payments"
90+
groupId = "com.cm.payments"
11891
artifactId = rootProject.name
11992
version = project.android.defaultConfig.versionName
12093
artifact bundleReleaseAar
12194
}
12295

12396
mavenAarDebug(MavenPublication) {
124-
groupId = "com.payplaza.payments"
97+
groupId = "com.cm.payments"
12598
artifactId = "${rootProject.name}-debug"
12699
version = project.android.defaultConfig.versionName
127100
artifact bundleDebugAar
128101
}
129-
130-
mavenAarCrt(MavenPublication) {
131-
groupId = "com.payplaza.payments"
132-
artifactId = "${rootProject.name}-crt"
133-
version = project.android.defaultConfig.versionName
134-
artifact bundleCrtAar
135-
}
136-
}
137-
repositories {
138-
maven {
139-
name = "gitlab"
140-
url = uri("https://gitlab.com/api/v4/projects/${System.getenv("CI_PROJECT_ID")}/packages/maven")
141-
credentials(HttpHeaderCredentials) {
142-
name = "Job-Token"
143-
value = System.getenv("CI_JOB_TOKEN")
144-
}
145-
authentication {
146-
header(HttpHeaderAuthentication)
147-
}
148-
}
149102
}
150103
}
151-
}
152-
repositories {
153-
mavenCentral()
154104
}

androidposintegration/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.payplaza.androidposintegration">
3+
package="com.cm.androidposintegration">
44

55

66
<application>

androidposintegration/src/main/java/com/cm/androidposintegration/activity/IntegrationActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import androidx.appcompat.app.AppCompatActivity
88
import androidx.lifecycle.ViewModelProvider
99
import com.cm.androidposintegration.intent.IntentHelper
1010
import com.cm.androidposintegration.service.callback.RequestId
11-
import com.payplaza.androidposintegration.BuildConfig
11+
import com.cm.androidposintegration.BuildConfig
1212

1313
open class IntegrationActivity : AppCompatActivity() {
1414

gradle.properties

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 -XX:MaxPermSize=256m
1515
# Android operating system, and which are packaged with your app"s APK
1616
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1717
android.useAndroidX=true
18-
19-
# The visual branding to use. Can be overridden via comand line,
20-
# e.g. -Pbranding=emerchantpay
21-
#branding=payplaza
22-
branding=emerchantpay
23-
24-
#branding=emerchantpay
18+
# Automatically convert third-party libraries to use AndroidX
19+
android.enableJetifier=true
20+
# Kotlin code style for this project: "official" or "obsolete":
21+
kotlin.code.style=official

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
rootProject.name = "androidposintegration"
1+
rootProject.name = "androidposintegrationsdk"
22
include ':app'
33
include ':androidposintegration'

0 commit comments

Comments
 (0)