diff --git a/card-scanning/build.gradle b/card-scanning/build.gradle new file mode 100644 index 0000000000..4251895372 --- /dev/null +++ b/card-scanning/build.gradle @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024 Adyen N.V. + * + * This file is open source and available under the MIT license. See the LICENSE file for more info. + * + * Created by oscars on 10/12/2024. + */ + +plugins { + alias libs.plugins.android.library + alias libs.plugins.kotlin.android +} + +// Maven artifact +ext.mavenArtifactId = "card-scanning" +ext.mavenArtifactName = "Adyen Checkout Card Scanning" +ext.mavenArtifactDescription = "Adyen Checkout Card scanning." + +apply from: "${rootDir}/config/gradle/sharedTasks.gradle" + +android { + namespace 'com.adyen.checkout.card.scanning' + compileSdk libs.versions.compile.sdk.get().toInteger() + + defaultConfig { + minSdk libs.versions.min.sdk.get().toInteger() + targetSdk libs.versions.target.sdk.get().toInteger() + + testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' + consumerProguardFiles "consumer-rules.pro" + } + + buildFeatures { + viewBinding true + } + + testOptions { + unitTests.returnDefaultValues = true + } +} + +dependencies {} diff --git a/card-scanning/consumer-rules.pro b/card-scanning/consumer-rules.pro new file mode 100644 index 0000000000..e69de29bb2 diff --git a/card-scanning/src/main/AndroidManifest.xml b/card-scanning/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..0a78100138 --- /dev/null +++ b/card-scanning/src/main/AndroidManifest.xml @@ -0,0 +1,9 @@ + + + diff --git a/card-scanning/src/main/java/com/adyen/checkout/card/scanning/AdyenCardScanner.kt b/card-scanning/src/main/java/com/adyen/checkout/card/scanning/AdyenCardScanner.kt new file mode 100644 index 0000000000..cfb5bb75da --- /dev/null +++ b/card-scanning/src/main/java/com/adyen/checkout/card/scanning/AdyenCardScanner.kt @@ -0,0 +1,11 @@ +/* + * Copyright (c) 2024 Adyen N.V. + * + * This file is open source and available under the MIT license. See the LICENSE file for more info. + * + * Created by oscars on 10/12/2024. + */ + +package com.adyen.checkout.card.scanning + +class AdyenCardScanner diff --git a/settings.gradle b/settings.gradle index 402a603586..c7c5205029 100644 --- a/settings.gradle +++ b/settings.gradle @@ -29,6 +29,7 @@ include ':3ds2', ':blik', ':boleto', ':card', + ':card-scanning', ':cashapppay', ':checkout-core', ':components-compose',