DyScan
Search…
DyScan
DyScan Integration Guide
iOS Integration Guide
Android Integration Guide
React Native Integration Guide
Cordova Integration Guide
Integrity Verification
Migrating from card.io
Migrating from card.io (iOS)
Migrating from card.io (Android)
Integrating with Stripe
Integrating with Stripe (iOS)
Integrating with Stripe (Android)
Alternate Ways to Integrate iOS
Integrating with Swift Package Manager
Integrating with Carthage
Integrating as a Framework
Alternate Ways To Integrate Android
Manually Importing the Library
Using DyScanView
MIGRATING FROM 1.0.X TO 1.1.X
Migrating from 1.0.x to 1.1.x (iOS)
Migrating from 1.0.x to 1.1.x (Android)
Migrating from 1.0.x to 1.1.x (React Native)
Powered By
GitBook
Migrating from 1.0.x to 1.1.x (Android)
In version 1.1.0 we change the way of initializing DyScan and setting up the API key.
Removing API key setter
Depending on the way which you chose to use DyScan, you will need to remove following lines.
Activity
View
1
public
void
onScanPress
(
View
v
)
{
2
Intent
scanIntent
=
new
Intent
(
this
,
DyScanActivity
.
class
);
3
4
// Remove the line below
5
// scanIntent.putExtra(DyScanActivity.EXTRA_API_KEY, "{api_key_string}");
6
7
//...
8
}
Copied!
1
DyScanView
dyScanView
;
2
3
//...
4
5
// Remove the line below
6
// dyScanView.setApiKey(API_KEY);
Copied!
Initializing DyScan
In your
Application
class add the following line to init
DyScan
.
1
public
class
DyScanApplication
extends
Application
{
2
3
//...
4
5
@Override
6
public
void
onCreate
()
{
7
super
.
onCreate
();
8
//...
9
DyScan
.
init
(
this
,
"{YOUR_API_KEY}"
);
10
//...
11
}
12
}
Copied!
MIGRATING FROM 1.0.X TO 1.1.X - Previous
Migrating from 1.0.x to 1.1.x (iOS)
Next - MIGRATING FROM 1.0.X TO 1.1.X
Migrating from 1.0.x to 1.1.x (React Native)
Last modified
1yr ago
Copy link
Contents
Removing API key setter
Initializing DyScan