-
Notifications
You must be signed in to change notification settings - Fork 68
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
1 parent
da3e8c9
commit 89954b4
Showing
816 changed files
with
21,823 additions
and
57,756 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
*.iml | ||
# generated files | ||
build/ | ||
release/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Windows thumbnail db | ||
.DS_Store | ||
|
||
# IDEA/Android Studio project files, because | ||
# the project can be imported from settings.gradle | ||
*.iml | ||
.idea/ | ||
|
||
# Gradle cache | ||
.gradle | ||
.idea | ||
local.properties | ||
build | ||
|
||
# Android Studio captures folder | ||
captures/ |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* Copyright (c) 2019 Adyen N.V. | ||
* | ||
* This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
* | ||
* Created by caiof on 8/2/2019. | ||
*/ | ||
|
||
// Maven artifact | ||
ext.mavenArtifactId = "3ds2" | ||
ext.mavenArtifactName = "Adyen checkout 3DS2 component" | ||
ext.mavenArtifactDescription = "Adyen Checkout 3DS2 component client for Adyen's Checkout API." | ||
|
||
apply plugin: 'com.android.library' | ||
|
||
// TODO switch back when we have MD5 file for 3DS2 SDK | ||
//apply from: "../config/gradle/sharedTasks.gradle" | ||
apply from: "../config/gradle/codeQuality.gradle" | ||
apply from: "../config/gradle/ci.gradle" | ||
|
||
android { | ||
compileSdkVersion version_compile_sdk | ||
|
||
defaultConfig { | ||
minSdkVersion version_min_sdk | ||
targetSdkVersion version_target_sdk | ||
versionCode version_code | ||
versionName version_name | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
dependencies { | ||
//Tests | ||
testImplementation "junit:junit:$version_junit" | ||
androidTestImplementation "com.android.support.test:runner:$version_support_test_runner" | ||
androidTestImplementation "com.android.support.test.espresso:espresso-core:$version_espresso" | ||
|
||
// Checkout | ||
api project(':base-v3') | ||
|
||
// Dependencies | ||
api "com.adyen.threeds:adyen-3ds2:$version_adyen3ds2" | ||
// TODO check if excludes are necessary | ||
// implementation("com.adyen.threeds:adyen-3ds2:0.9.6") { | ||
// exclude group: 'com.android.support', module: 'appcompat-v7' | ||
// } | ||
} | ||
|
||
// This release.gradle script is applied at the end of this build.gradle script, | ||
// since javadocs.gradle script is dependent on android.compileSdkVersion property, | ||
// which is set on the android block above. | ||
apply from: "../config/gradle/release.gradle" |
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
3ds2/src/androidTest/java/com/adyen/checkout/adyen3ds2/ExampleInstrumentedTest.java
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright (c) 2019 Adyen N.V. | ||
* | ||
* This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
* | ||
* Created by caiof on 7/5/2019. | ||
*/ | ||
|
||
package com.adyen.checkout.adyen3ds2; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
/** | ||
* 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() { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("com.adyen.checkout.adyen3ds2.test", appContext.getPackageName()); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
~ Copyright (c) 2019 Adyen N.V. | ||
~ | ||
~ This file is open source and available under the MIT license. See the LICENSE file for more info. | ||
~ | ||
~ Created by caiof on 7/5/2019. | ||
--> | ||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.adyen.checkout.adyen3ds2"/> |
Oops, something went wrong.