@aigens/aigens-sdk-core 0.0.40 → 0.1.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.
@@ -113,10 +113,10 @@ public class WebContainerActivity extends BridgeActivity {
|
|
113
113
|
universalLink = null;
|
114
114
|
}
|
115
115
|
}
|
116
|
-
if (universalLink != null && (totalUrl.startsWith(universalLink) || universalLink.contains("aigens=true")) && totalUrl.indexOf("redirect=") >= 0) {
|
116
|
+
if (universalLink != null && (totalUrl.startsWith(universalLink) || universalLink.contains("aigens=true") || universalLink.contains("aigens/true")) && totalUrl.indexOf("redirect=") >= 0) {
|
117
117
|
redirectUrl = totalUrl.split("redirect=")[1];
|
118
118
|
}
|
119
|
-
if (universalLink != null && (totalUrl.startsWith(universalLink) || universalLink.contains("aigens=true")) && totalUrl.indexOf("aigensRedirect/") >= 0) {
|
119
|
+
if (universalLink != null && (totalUrl.startsWith(universalLink) || universalLink.contains("aigens=true") || universalLink.contains("aigens/true")) && totalUrl.indexOf("aigensRedirect/") >= 0) {
|
120
120
|
redirectUrl = totalUrl.split("aigensRedirect/")[1];
|
121
121
|
}
|
122
122
|
Log.i("getRedirectUrl", totalUrl);
|
@@ -143,7 +143,7 @@ import Capacitor
|
|
143
143
|
|
144
144
|
url = decodeURIComponent(url);
|
145
145
|
|
146
|
-
if universalLink.isEmpty || (!url.absoluteString.starts(with: universalLink) && !universalLink.contains("aigens=true")) {
|
146
|
+
if universalLink.isEmpty || (!url.absoluteString.starts(with: universalLink) && !universalLink.contains("aigens=true") && !universalLink.contains("aigens/true")) {
|
147
147
|
return;
|
148
148
|
}
|
149
149
|
|
@@ -176,7 +176,7 @@ import Capacitor
|
|
176
176
|
url = decodeURIComponent(url);
|
177
177
|
|
178
178
|
|
179
|
-
if universalLink.isEmpty || (!url.absoluteString.starts(with: universalLink) && !universalLink.contains("aigens=true")) {
|
179
|
+
if universalLink.isEmpty || (!url.absoluteString.starts(with: universalLink) && !universalLink.contains("aigens=true") && !universalLink.contains("aigens/true")) {
|
180
180
|
return;
|
181
181
|
}
|
182
182
|
|
@@ -373,7 +373,7 @@ extension WebContainerViewController: WKNavigationDelegate {
|
|
373
373
|
}
|
374
374
|
|
375
375
|
aigensprint("navURL--:\(navURL)")
|
376
|
-
if !universalLink.isEmpty && (navURL.absoluteString.starts(with: universalLink) || universalLink.contains("aigens=true")) {
|
376
|
+
if !universalLink.isEmpty && (navURL.absoluteString.starts(with: universalLink) || universalLink.contains("aigens=true") || universalLink.contains("aigens/true")) {
|
377
377
|
|
378
378
|
if navURL.absoluteString.range(of: "redirect=") != nil, var redirect = navURL.absoluteString.components(separatedBy:"redirect=").last{
|
379
379
|
if !redirect.starts(with: "http://") && !redirect.starts(with: "https://") {
|
@@ -390,7 +390,7 @@ extension WebContainerViewController: WKNavigationDelegate {
|
|
390
390
|
return;
|
391
391
|
}
|
392
392
|
}
|
393
|
-
|
393
|
+
|
394
394
|
if navURL.absoluteString.range(of: "aigensRedirect/") != nil, var redirect = navURL.absoluteString.components(separatedBy:"aigensRedirect/").last, !redirect.isEmpty{
|
395
395
|
if !redirect.starts(with: "http://") && !redirect.starts(with: "https://") {
|
396
396
|
redirect = "https://" + redirect
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aigens/aigens-sdk-core",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"description": "Aigens Order.Place Core Plugin",
|
5
5
|
"main": "dist/plugin.cjs.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -44,14 +44,14 @@
|
|
44
44
|
"prepublishOnly": "npm run build"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
-
"@capacitor/android": "^
|
48
|
-
"@capacitor/core": "^
|
49
|
-
"@capacitor/docgen": "^0.0
|
50
|
-
"@capacitor/ios": "^
|
47
|
+
"@capacitor/android": "^4.6.1",
|
48
|
+
"@capacitor/core": "^4.6.1",
|
49
|
+
"@capacitor/docgen": "^0.2.0",
|
50
|
+
"@capacitor/ios": "^4.6.1",
|
51
51
|
"@ionic/eslint-config": "^0.3.0",
|
52
52
|
"@ionic/prettier-config": "^1.0.1",
|
53
53
|
"@ionic/swiftlint-config": "^1.1.2",
|
54
|
-
"eslint": "^
|
54
|
+
"eslint": "^8.31.0",
|
55
55
|
"prettier": "~2.2.0",
|
56
56
|
"prettier-plugin-java": "~1.0.0",
|
57
57
|
"rimraf": "^3.0.2",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
"typescript": "~4.8"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|
63
|
-
"@capacitor/core": "^
|
63
|
+
"@capacitor/core": "^4.6.1"
|
64
64
|
},
|
65
65
|
"prettier": "@ionic/prettier-config",
|
66
66
|
"swiftlint": "@ionic/swiftlint-config",
|