@falconeta/capacitor-aws-amplify 0.0.22 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,6 +9,34 @@ npm install @falconeta/capacitor-aws-amplify
9
9
  npx cap sync
10
10
  ```
11
11
 
12
+ ## android config
13
+
14
+ Inside MainActivity
15
+
16
+ ```java
17
+ @Override
18
+ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
19
+ super.onActivityResult(requestCode, resultCode, data);
20
+ .
21
+ .
22
+ .
23
+ if (data == null){
24
+ Amplify.Auth.handleWebUISignInResponse(null);
25
+ }
26
+
27
+ }
28
+ ```
29
+ Inside gradle
30
+
31
+ ```gradle
32
+ // Amplify core dependency
33
+ implementation 'com.amplifyframework:core:1.38.7'
34
+
35
+ // AWS Cognito dependency
36
+ implementation 'com.amplifyframework:aws-auth-cognito:1.38.7'
37
+ ```
38
+
39
+
12
40
  ## API
13
41
 
14
42
  <docgen-index>
@@ -11,7 +11,7 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.0.0'
14
+ classpath 'com.android.tools.build:gradle:8.2.1'
15
15
  }
16
16
  }
17
17
 
@@ -19,10 +19,10 @@ apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
21
  namespace "com.capacitor.aws.amplify"
22
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 33
22
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
23
23
  defaultConfig {
24
24
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 33
25
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
26
26
  versionCode 1
27
27
  versionName "1.0"
28
28
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -154,7 +154,13 @@ public class AwsAmplify {
154
154
  onError);
155
155
  },
156
156
  error -> {
157
- onError.accept(error);
157
+ Log.e(TAG, "signInWithSocialWebUI error: ", error);
158
+ JSObject ret = new JSObject();
159
+ ret.put("status", -1);
160
+ if (AuthException.UserCancelledException.class.isInstance(error)) {
161
+ ret.put("status", -2);
162
+ }
163
+ onSuccess.accept(ret);
158
164
  });
159
165
  }
160
166
  }, error -> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@falconeta/capacitor-aws-amplify",
3
- "version": "0.0.22",
3
+ "version": "6.0.0",
4
4
  "description": "plugin that handle amplify features",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -44,10 +44,10 @@
44
44
  "prepublishOnly": "npm run build"
45
45
  },
46
46
  "devDependencies": {
47
- "@capacitor/android": "^5.0.0",
48
- "@capacitor/core": "^5.0.0",
47
+ "@capacitor/android": "^6.0.0",
48
+ "@capacitor/core": "^6.0.0",
49
49
  "@capacitor/docgen": "^0.0.18",
50
- "@capacitor/ios": "^5.0.0",
50
+ "@capacitor/ios": "^6.0.0",
51
51
  "@ionic/eslint-config": "^0.3.0",
52
52
  "@ionic/prettier-config": "^1.0.1",
53
53
  "@ionic/swiftlint-config": "^1.1.2",
@@ -60,7 +60,7 @@
60
60
  "typescript": "~4.1.5"
61
61
  },
62
62
  "peerDependencies": {
63
- "@capacitor/core": "^5.0.0"
63
+ "@capacitor/core": "^6.0.0"
64
64
  },
65
65
  "dependencies": {
66
66
  "@aws-amplify/auth": "^5.6.5",