Skip to content

Commit

Permalink
release/1.2.0 (#10)
Browse files Browse the repository at this point in the history
* Release release/1.2.0

* Update build.gradle

---------

Co-authored-by: Gitlab Runner <[email protected]>
  • Loading branch information
DominikMicutaGetnetEurope and Gitlab Runner authored Jul 31, 2023
1 parent 4e0ceeb commit 37227f9
Show file tree
Hide file tree
Showing 89 changed files with 1,590 additions and 2,181 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Payment SDK – MIT License |Open Source
Recitals: PagoNxt will offer the payment SDK free of charge, to any person obtaining a copy of this software and associated documentation files under the conditions below. User has to verify the effects of Payment SDK on the implemented environment and will do that at its own risk. Digital downloads are software products. Their contents are protected under copyright and intellectual property law.


Copyright © 2023 PagoNxt Merchant Solutions S.L. and Santander España Merchant Services, Entidad de Pago, S.L.U.
Copyright © 2023PagoNxt Merchant Solutions S.L. and Santander España Merchant Services, Entidad de Pago, S.L.U.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Mobile Payment SDK Android

For integration visit [docs](https://docs.getneteurope.com/MobilePaymentSDK.html)
For integration visit [docs](https://docs.getneteurope.com/)
43 changes: 35 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'testfairy'

android {
compileSdkVersion 33
compileSdkVersion compileVersion
defaultConfig {
applicationId "com.sdkpay.ecom.examples"
minSdkVersion 23
targetSdkVersion 33
versionCode 2
versionName "1.1.1"
minSdkVersion minVersion
targetSdkVersion targetVersion
versionCode exampleAppVersionCode
versionName exampleAppVersion
flavorDimensions "default"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
abortOnError false
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
Expand All @@ -38,6 +42,12 @@ android {
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion androidxComposeCompiler
}

productFlavors {
normal {
Expand All @@ -51,15 +61,28 @@ android {
}
}

apply from: 'libs/versions.gradle'
apply from: 'libs/dependencies.gradle'

dependencies {

implementation 'androidx.annotation:annotation:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
testImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.1.5"
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
testImplementation "junit:junit:$junit"
androidTestImplementation "androidx.test.ext:junit:$testExt"
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoCore"

implementation "androidx.compose.ui:ui:$androidxCompose"
implementation "androidx.compose.ui:ui-tooling:$androidxCompose"
implementation "androidx.compose.ui:ui-tooling-preview:$androidxCompose"
implementation "androidx.compose.foundation:foundation:$androidxCompose"
implementation "androidx.compose.material:material:$androidxCompose"
implementation "androidx.compose.material:material-icons-core:$androidxCompose"
implementation "androidx.compose.material:material-icons-extended:$androidxCompose"
implementation "androidx.activity:activity-compose:$androidxActivityCompose"

debugImplementation "androidx.compose.ui:ui-tooling:$androidxCompose"
debugImplementation "androidx.compose.ui:ui-test-manifest:$androidxCompose"

implementation files('libs/alipay.aar')
implementation files('libs/camera.aar')
Expand All @@ -73,5 +96,9 @@ dependencies {
implementation files('libs/ratepay.aar')
implementation files('libs/blik.aar')
implementation files('libs/bizum.aar')
implementation files('libs/ideal.aar')
implementation files('libs/mbway.aar')
implementation files('libs/mbreferencia.aar')
implementation files('libs/zinia.aar')

}
168 changes: 84 additions & 84 deletions app/gradlew.bat
Original file line number Diff line number Diff line change
@@ -1,84 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
Binary file modified app/libs/alipay.aar
Binary file not shown.
Binary file modified app/libs/bizum.aar
Binary file not shown.
Binary file modified app/libs/blik.aar
Binary file not shown.
Binary file modified app/libs/camera.aar
Binary file not shown.
Binary file modified app/libs/card.aar
Binary file not shown.
Binary file modified app/libs/core.aar
Binary file not shown.
11 changes: 0 additions & 11 deletions app/libs/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
*/

dependencies {
def kotlinVersion = "1.8.20"
def appCompat = "1.6.1"
def material = "1.8.0"
def actvityKtx = "1.7.1"
def fragmentKtx = "1.5.7"
def rxKotlin = "2.2.0"
def rxAndroid = "2.1.0"
def constraint = "2.1.4"
def coreKtx = "1.10.0"
def lifecycleRuntimeKtx = "2.2.0"
def camerax = "1.0.2"

implementation "androidx.appcompat:appcompat:$appCompat"
implementation "com.google.android.material:material:$material"
Expand Down
Binary file added app/libs/ideal.aar
Binary file not shown.
Binary file added app/libs/mbreferencia.aar
Binary file not shown.
Binary file added app/libs/mbway.aar
Binary file not shown.
Binary file modified app/libs/p24.aar
Binary file not shown.
Binary file modified app/libs/paypal.aar
Binary file not shown.
Binary file modified app/libs/ratepay.aar
Binary file not shown.
Binary file modified app/libs/sepa.aar
Binary file not shown.
Binary file modified app/libs/sofort.aar
Binary file not shown.
73 changes: 73 additions & 0 deletions app/libs/versions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
ext {
def prop = new Properties()
try {
prop.load(new FileInputStream(file('../project.properties')))
} catch (Exception e) {
}
releaseVersion = prop.getProperty("version")
releaseCode = releaseVersion.replaceAll("[^\\d]", "").toInteger()
sdkVersion = releaseVersion
gradlePlugin = '7.4.0'
kotlinGradlePlugin = '1.8.20'
testfairy = '3.+'
kotlinVersion = '1.8.20'
rxKotlin = '2.2.0'
rxAndroid = '2.1.0'
uiautomator = "2.2.0"
testRules = "1.2.0"
junit = '4.13.2'
testExt = "1.1.5"
testAnnotation = "1.1.0"
assertj = "3.15.0"
mockito = "2.18.3"
mockitoKotlin = "1.6.0"
espressoJunit = '1.1.5'
espressoCore = '3.5.1'
androidxCompose = "1.4.3"
androidxComposeCompiler = "1.4.6"
androidxActivityCompose = "1.5.1"
appCompat = "1.6.1"
material = "1.8.0"
constraint = "2.1.4"
coreKtx = "1.10.0"
actvityKtx = "1.7.1"
fragmentKtx = "1.5.7"
lifecycleRuntimeKtx = "2.2.0"
viewModelLifecycle = "2.6.1"
timber = "4.7.1"
camerax = '1.0.2'
recyclerview = "1.3.0"
cardview = "1.0.0"
butterknife = "10.2.1"
navigationCompose = "2.5.2"
eventbus = "3.0.0"
calligraphy = "2.3.0"
retrofit = "2.9.0"
loggingInterceptor = "4.4.0"
mockwebserver = "4.4.0"
iban4j = "3.2.1"
rxjava2 = "2.2.9"
voyager = "1.0.0-rc02"
sonar = "3.5.0.2730"

// Global versions
minVersion = 23
targetVersion = 33
compileVersion = 33
minifyEnabledDebug = true
minifyEnabledRelease = true
enabledDebuggable = true

// Test app
testAppVersion = "2.6.15"
testAppVersionCode = 2696

//Example app
exampleAppVersion = "2.5.9"
exampleAppVersionCode = 10

//Shop app
shopAppVersion = "1.9.10"
shopAppVersionCode = 190

}
Binary file modified app/libs/wiretransfer.aar
Binary file not shown.
Binary file added app/libs/zinia.aar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright © 2023 PagoNxt Merchant Solutions S.L. and Santander España Merchant Services, Entidad de Pago, S.L.U.
* You may not use this file except in compliance with the License which is available at https://mit-license.org/
*/

package com.sdkpay.ecom.examples;

import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.sdkpay.ecom.examples", appContext.getPackageName());
}
}
Loading

0 comments on commit 37227f9

Please sign in to comment.