- Android SDK Url
- Android Studio Arctic Fox or newer
- Minimum SDK version: 24
- Target SDK version: 35
- Kotlin version: 2.0.0 or higher
- Gradle version: 8.8.0 or higher
Dependencies #
- Configure your project’s
settings.gradle.kts
with the required repositories:
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
maven {
url = uri("https://storage.googleapis.com/download.flutter.io")
}
}
}
Add the following dependency to your app’s build.gradle.kts
:
dependencies {
implementation("com.amwal-pay:amwal_sdk:1.0.70")
}
Setup #
Add the required permissions to your AndroidManifest.xml
:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.NFC"/>
<uses-feature android:name="android.hardware.nfc" android:required="true"/>
Initialize the SDK in your application:
private val amwalSDK by lazy { AmwalSDK() }