-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from argyle-systems/add-migration-guide
Add migration guide
- Loading branch information
Showing
2 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
# Argyle Android SDK example project | ||
Android Link SDK provides a way to integrate [Argyle Link](https://argyle.io/docs/argyle-link) into your Android app. | ||
|
||
Documentation can be found [here](https://argyle.com/docs/argyle-link/android-sdk-integration) | ||
If you are looking to update Argyle Link to the newest version, navigate to [upgrade guide](https://github.com/argyle-systems/argyle-link-android/blob/master/UPGRADING.md). | ||
|
||
**The SDK supports API level 23 and above ([distribution stats](https://developer.android.com/about/dashboards)).** | ||
|
||
**Note:** We recommend you to lock your app to portrait orientation. | ||
|
||
--- | ||
- **Important:** When using tools like Proguard to obfuscate your code, make sure to exclude Android Link SDK package (`com.argyle.*`) from the process, it may cause unexpected runtime issues otherwise. You can do this by adding this line to your `proguard-rules.pro:-keep class com.argyle. { *; }` | ||
|
||
Our target configuration is currently set to the following: | ||
|
||
- `minSdkVersion = 23` | ||
- `Kotlin = 1.4.32` | ||
|
||
## 1. Add the SDK dependency | ||
``` | ||
dependencies { | ||
implementation 'com.argyle:argyle-plugin-android-source:4.x.x' | ||
} | ||
``` | ||
|
||
## 2. Configure and integrate Link | ||
### 1. Access your Link API Key | ||
1. Log into your [Console](https://console.argyle.com/api-keys) instance | ||
2. Navigate to the [API Keys](https://console.argyle.com/api-keys) area under the Developer menu | ||
3. Copy your Sandbox or Production Link API Key for use in the next step | ||
|
||
### 2. Utilize user tokens | ||
For successful implementation you need to make sure to utilize user tokens correctly. Learn how to do it in Argyle [returning user experience guide](https://argyle.com/docs/products/returning-users-experience) before continuing onto the next step. | ||
|
||
### 3. Integrate Link | ||
See [Example](https://github.com/argyle-systems/argyle-link-android/blob/master/app/src/main/java/com/argyleexample/MainActivity.kt) for sample implementation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Android SDK version upgrade guide | ||
|
||
## Learn how to upgrade to the newest Link version. | ||
If you are looking to integrate Argyle Link for the first time navigate to [integration guide](https://github.com/argyle-systems/argyle-link-android#readme). | ||
|
||
- [Android SDK upgrade guide](#android-sdk-upgrade-guide) | ||
- [Migrating to Link 4](#migrating-to-link-4) | ||
|
||
--- | ||
## Android SDK upgrade guide | ||
### Review the changes in the latest version | ||
Before you upgrade to a new version of the Link SDK, you should review the [Releases page](https://github.com/argyle-systems/argyle-link-android/releases). This will help you to understand any changes that you will need to make in your code as the result of an upgrade. | ||
|
||
We strongly recommend upgrading the SDK as soon as there is a new version available. Doing so will help you to provide the best Argyle Link experience in your application. | ||
|
||
--- | ||
### Upgrade to a new SDK version | ||
**The minimum supported Android version is Android 6.0 (API level 23).** | ||
|
||
- In your app module gradle file (typically found at `app/build.gradle`) locate the Argyle dependency within your dependencies block and increment the version number according to the latest version number displayed in the [Releases page](https://github.com/argyle-systems/argyle-link-android/releases). | ||
|
||
``` | ||
implementation 'com.argyle:argyle-plugin-android-source:<insert latest version number>' | ||
``` | ||
|
||
- To verify the change initiate a gradle sync and confirm no errors. | ||
|
||
- If you are using pro-guard, make sure you have the most up-to-date Proguard rules which can be found in our [integration guide](https://github.com/argyle-systems/argyle-link-android#readme). | ||
|
||
--- | ||
# Migrating to Link 4 | ||
|
||
If you're using a previous version of Link and would like to migrate to the new version, please review updates described below, make necessary changes and then follow the usual [Android Link SDK version upgrade instruction](#upgrade-to-a-new-sdk-version) defined above. | ||
|
||
--- | ||
### Updated configuration attributes | ||
|
||
Please find below a list of all configuration attributes that have been removed or changed. | ||
|
||
--- | ||
|
||
**introSearchPlaceholder: removed** | ||
|
||
Became redundant due to [Intro screen](https://argyle.com/docs/products/link-4#intro-screen) redesign. | ||
|
||
--- | ||
**searchScreenTitle: removed** | ||
|
||
Became redundant due to [Search screen](https://argyle.com/docs/products/link-4#search-screen) redesign. | ||
|
||
--- | ||
**searchScreenSubtitle: removed** | ||
|
||
Became redundant due to [Search screen](https://argyle.com/docs/products/link-4#search-screen) redesign. | ||
|
||
--- | ||
**dataPartners: removed** | ||
|
||
The property has been deprecated since introduction of Link 3 in favor of `linkItems`. | ||
|
||
--- | ||
|
||
### Updated error code | ||
|
||
[Link Initialization error](https://argyle.com/docs/developer-tools/link-initialization-errors#) **invalid_plugin_key: renamed** | ||
|
||
The error was renamed to `invalid_link_key`. | ||
|
||
--- |