Skip to content

Commit

Permalink
3.0.0-rc01
Browse files Browse the repository at this point in the history
  • Loading branch information
adyen-git-manager committed Jun 26, 2019
1 parent da3e8c9 commit 89954b4
Show file tree
Hide file tree
Showing 816 changed files with 21,823 additions and 57,756 deletions.
22 changes: 18 additions & 4 deletions .gitignore
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.
67 changes: 67 additions & 0 deletions 3ds2/build.gradle
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.
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());
}
}
10 changes: 10 additions & 0 deletions 3ds2/src/main/AndroidManifest.xml
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"/>
Loading

0 comments on commit 89954b4

Please sign in to comment.