Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ dependencies {
implementation project(path: ':sdk')
implementation project(path: ':ui')
implementation project(path: ':checkout-3ds')
implementation project(path: ':netcetera-3ds')

implementation "com.adyen.threeds:adyen-3ds2:$adyen3dsSdkVersion"

Expand Down
1 change: 1 addition & 0 deletions netcetera-3ds/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
82 changes: 82 additions & 0 deletions netcetera-3ds/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.dokka'
}

ext {
publishArtifactId = 'processout-android-netcetera-3ds'
publishDescription = 'ProcessOut Android SDK - Netcetera 3DS'
}

apply from: "${rootProject.projectDir}/scripts/publish-module.gradle"

android {
namespace 'com.processout.sdk.netcetera.threeds'
compileSdk rootProject.ext.compileSdkVersion

defaultConfig {
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
setBuildConfig(it)
consumerProguardFiles 'consumer-rules.pro'
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
getIsDefault().set(true)
}
}

flavorDimensions = ['environment']
productFlavors {
production {
dimension 'environment'
}
staging {
getIsDefault().set(true)
dimension 'environment'
}
}

buildFeatures {
buildConfig true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

publishing {
singleVariant('productionRelease') {
withSourcesJar()
withJavadocJar()
}
}
}

kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
optIn.add("com.processout.sdk.core.annotation.ProcessOutInternalApi")
optIn.add("com.processout.sdk.netcetera.threeds.core.annotation.ProcessOutInternalApi")
}
}

@SuppressWarnings('GrMethodMayBeStatic')
def setBuildConfig(buildType) {
buildType.buildConfigField("String", "LIBRARY_NAME", "\"ProcessOut Android SDK - Netcetera 3DS\"")
buildType.buildConfigField("String", "LIBRARY_VERSION", "\"$publishVersion\"")
}

dependencies {
api project(path: ':sdk')
api "com.processout:processout-android-netcetera-3ds-core:$netcetera3dsSdkVersion"
}
Empty file.
21 changes: 21 additions & 0 deletions netcetera-3ds/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
2 changes: 2 additions & 0 deletions netcetera-3ds/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest />
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ include ':sdk'
include ':ui'
include ':ui-core'
include ':checkout-3ds'
include ':netcetera-3ds'
include ':netcetera-3ds-core'