430 Integration
This page contains the required fields for integration with the 430 device.
Manifest.xml Configurations
<manifest ... >
...
<application ... >
...
<meta-data android:name="app_name" android:value="BNK_ID_COMPANYNAME" />
<meta-data android:name="app_model_type" android:value="430TR" /> // For 430TR devices
<meta-data android:name="app_version" android:value="43000110" /> // Change Android Version major/minor/build into integer. We kindly request this change. Version no must start with 430. Example: 43000110.
</application>
...apply plugin: 'com.android.application'
// This section is parsing Android manifest file, reads version in the meta-data tag, writes it into version name in gradle
// so that the version shown in the android settinsg is same as version in the meta-tag
def versionFromManifest
task parseManifest() {
def manifest = new XmlSlurper().parse(file(android.sourceSets.main.manifest.srcFile)).declareNamespace(android: 'http://schemas.android.com/apk/res/android');
println manifest.@package
manifest.application["meta-data"].each {
def m = it.attributes()['android:name'] =~ /app_version/
if (m.find()) {
versionFromManifest = it.attributes()['android:value'].toString()
}
}
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.atms_alpha"
minSdkVersion 26
targetSdkVersion 28
versionCode versionFromManifest.toInteger()
versionName "${versionFromManifest}"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "ATMS_Alpha_" + versionFromManifest)
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}Device Info
void getFiscalId(DeviceInfoResponseHandler deviceInfoResponseHandler)
void getDeviceMode(DeviceInfoResponseHandler deviceInfoResponseHandler)
Important Considerations
UI
Last updated