You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,9 +68,13 @@ We integrated the Login with Amazon SDK in our Unity project by creating a wrapp
68
68
69
69
4. In `gradleTemplate.properties`, add `android.useAndroidX=true`.
70
70
71
-
5.In the `Assets` folder, create an `assets` folder and insert your API key as the only data in the `api_key.txt` file generated in Step 2.
71
+
5.Create a new [Security Profile](https://developer.amazon.com/docs/login-with-amazon/register-android.html#create-a-new-security-profile).
72
72
73
-
6. In `mainTemplate.gradle`, add the following code snippet at the very end of the file:
73
+
6. Create your app in the Amazon Developer portal, and in 'New app Submission/Upload your app', you'll get an Appstore Certificate Hashes link. On clicking that link, you'll get the MD5 and SHA-256 of the Amazon signature with which your app will be signed when submitted. Use these hash values while adding [Android Settings to your Security Profile](https://developer.amazon.com/docs/login-with-amazon/register-android.html#add-android-settings) to get the API key.
74
+
75
+
7. In the `Assets` folder, create an `assets` folder and insert your API key as the only data in the `api_key.txt`
76
+
77
+
8. In `mainTemplate.gradle`, add the following code snippet at the very end of the file:
@@ -84,12 +88,12 @@ We integrated the Login with Amazon SDK in our Unity project by creating a wrapp
84
88
preBuild.dependsOn(copyAmazon)
85
89
```
86
90
87
-
7. In the folder created in Step 1, add three files that create a bridge between Login with Amazon Java APIs and Unity C# script. These code snippets can be refactored as per your requirements:
91
+
9. In the folder created in Step 1, add three files that create a bridge between Login with Amazon Java APIs and Unity C# script. These code snippets can be refactored as per your requirements:
88
92
-`UnityPlayerProxyActivity.java`: Create a custom Unity activity following the [Unity documentation](https://docs.unity3d.com/Manual/android-custom-activity.html) and integrate Login with Amazon as documented in the [official guide](https://developer.amazon.com/docs/login-with-amazon/use-sdk-android.html).
89
93
-`LwaAuthManager.cs`: C# file to call the Java API for execution in Unity.
90
94
-`UnityAuthListenerCallbackInterface.java`: Interface to handle authentication callbacks.
91
95
92
-
8. In `AndroidManifest.xml`, make the following changes:
96
+
10. In `AndroidManifest.xml`, make the following changes:
93
97
- Replace the application's activity `android:name` with `<packageName>.UnityPlayerProxyActivity`.
94
98
- Add the [WorkflowActivity](https://developer.amazon.com/docs/login-with-amazon/create-android-project.html#add-a-workflowactivity-to-your-project). Don't forget to replace `${applicationId}` with your package name for this app.
0 commit comments