Skip to content

Commit 5c829b7

Browse files
author
Ajit Kumar
committed
v1.10.3
1 parent 896e077 commit 5c829b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1134
-1582
lines changed

.vscode/plugins.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"plugins":["cordova-clipboard","cordova-plugin-buildinfo","cordova-plugin-device","cordova-plugin-file","cordova-plugin-sftp","cordova-plugin-server","cordova-plugin-iap","cordova-plugin-ftp","cordova-plugin-sdcard","cordova-plugin-browser","cordova-plugin-system"]}
1+
{"plugins":["cordova-clipboard","cordova-plugin-buildinfo","cordova-plugin-device","cordova-plugin-file","cordova-plugin-sftp","cordova-plugin-server","cordova-plugin-ftp","cordova-plugin-sdcard","cordova-plugin-browser","cordova-plugin-system","cordova-plugin-iap"]}

config.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='utf-8' ?>
2-
<widget id="com.foxdebug.acode" android-versionCode="947" version="1.10.2"
2+
<widget id="com.foxdebug.acode" android-versionCode="950" version="1.10.3"
33
xmlns="http://www.w3.org/ns/widgets"
44
xmlns:android="http://schemas.android.com/apk/res/android"
55
xmlns:cdv="http://cordova.apache.org/ns/1.0">

package-lock.json

+1,001-1,457
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"cordova-plugin-file": {},
2525
"cordova-plugin-sftp": {},
2626
"cordova-plugin-server": {},
27-
"cordova-plugin-iap": {},
2827
"cordova-plugin-ftp": {},
2928
"cordova-plugin-sdcard": {},
3029
"cordova-plugin-browser": {},
31-
"cordova-plugin-system": {}
30+
"cordova-plugin-system": {},
31+
"cordova-plugin-iap": {}
3232
},
3333
"platforms": [
3434
"android"
@@ -43,17 +43,17 @@
4343
},
4444
"homepage": "https://github.com/deadlyjack/acode#readme",
4545
"devDependencies": {
46-
"@babel/cli": "^7.23.9",
47-
"@babel/core": "^7.24.0",
48-
"@babel/plugin-transform-runtime": "^7.24.0",
49-
"@babel/preset-env": "^7.24.0",
50-
"@babel/runtime": "^7.24.0",
51-
"@babel/runtime-corejs3": "^7.24.0",
46+
"@babel/cli": "^7.24.6",
47+
"@babel/core": "^7.24.6",
48+
"@babel/plugin-transform-runtime": "^7.24.6",
49+
"@babel/preset-env": "^7.24.6",
50+
"@babel/runtime": "^7.24.6",
51+
"@babel/runtime-corejs3": "^7.24.6",
5252
"@types/ace": "^0.0.52",
5353
"@types/url-parse": "^1.4.11",
54-
"autoprefixer": "^10.4.18",
54+
"autoprefixer": "^10.4.19",
5555
"babel-loader": "^9.1.3",
56-
"cordova-android": "^12.0.1",
56+
"cordova-android": "^13.0.0",
5757
"cordova-clipboard": "^1.3.0",
5858
"cordova-plugin-browser": "file:src/plugins/browser",
5959
"cordova-plugin-buildinfo": "^4.0.0",
@@ -65,38 +65,38 @@
6565
"cordova-plugin-server": "file:src/plugins/server",
6666
"cordova-plugin-sftp": "file:src/plugins/sftp",
6767
"cordova-plugin-system": "file:src/plugins/system",
68-
"css-loader": "^6.10.0",
69-
"mini-css-extract-plugin": "^2.8.1",
68+
"css-loader": "^7.1.2",
69+
"mini-css-extract-plugin": "^2.9.0",
7070
"path-browserify": "^1.0.1",
7171
"postcss-loader": "^8.1.1",
7272
"prettier": "^3.2.5",
7373
"prettier-plugin-java": "^2.6.0",
7474
"raw-loader": "^4.0.2",
75-
"sass": "^1.72.0",
76-
"sass-loader": "^14.1.1",
77-
"style-loader": "^3.3.4",
78-
"webpack": "^5.90.3",
75+
"sass": "^1.77.2",
76+
"sass-loader": "^14.2.1",
77+
"style-loader": "^4.0.0",
78+
"webpack": "^5.91.0",
7979
"webpack-cli": "^5.1.4"
8080
},
8181
"dependencies": {
8282
"@deadlyjack/ajax": "^1.2.6",
8383
"@ungap/custom-elements": "^1.3.0",
8484
"autosize": "^6.0.1",
8585
"cordova": "12.0.0",
86-
"core-js": "^3.36.0",
86+
"core-js": "^3.37.1",
8787
"crypto-js": "^4.2.0",
8888
"escape-string-regexp": "^5.0.0",
8989
"esprima": "^4.0.1",
90-
"filesize": "^10.1.0",
91-
"html-tag-js": "^1.4.3",
90+
"filesize": "^10.1.2",
91+
"html-tag-js": "^1.5.1",
9292
"js-base64": "^3.7.7",
9393
"jszip": "^3.10.1",
94-
"markdown-it": "^14.0.0",
94+
"markdown-it": "^14.1.0",
9595
"mime-types": "^2.1.35",
96-
"minimatch": "^9.0.3",
96+
"minimatch": "^9.0.4",
9797
"mustache": "^4.2.0",
9898
"url-parse": "^1.5.10",
99-
"vanilla-picker": "^2.12.2",
99+
"vanilla-picker": "^2.12.3",
100100
"yargs": "^17.7.2"
101101
},
102102
"browserslist": "cover 100%,not android < 5"

res/android/values/colors.xml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<resources xmlns:tools="http://schemas.android.com/tools">
3+
<color name="cdv_splashscreen_background">#3a3e54</color>
4+
</resources>

src/plugins/iap/plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
</config-file>
2323

2424
<source-file src="src/com/foxdebug/iap/Iap.java" target-dir="src/com/foxdebug/iap"/>
25-
<framework src="com.android.billingclient:billing:5.1.0" />
25+
<framework src="com.android.billingclient:billing:6.0.1" />
2626
</platform>
2727
</plugin>

src/plugins/iap/src/com/foxdebug/iap/Iap.java

+22-18
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void run() {
9191
getPurchases(callbackContext);
9292
break;
9393
case "acknowledgePurchase":
94-
aknowledgePurchase(arg1, callbackContext);
94+
acknowledgePurchase(arg1, callbackContext);
9595
break;
9696
}
9797
}
@@ -165,25 +165,29 @@ public void onConsumeResponse(
165165
}
166166

167167
private void startConnection(CallbackContext callbackContext) {
168-
if (billingClient == null) {
169-
billingClient = getBillingClient();
170-
}
171-
billingClient.startConnection(
172-
new BillingClientStateListener() {
173-
public void onBillingSetupFinished(BillingResult billingResult) {
174-
int responseCode = billingResult.getResponseCode();
175-
if (responseCode == BillingResponseCode.OK) {
176-
callbackContext.success(responseCode);
177-
} else {
178-
callbackContext.error(responseCode);
168+
try {
169+
if (billingClient == null) {
170+
billingClient = getBillingClient();
171+
}
172+
billingClient.startConnection(
173+
new BillingClientStateListener() {
174+
public void onBillingSetupFinished(BillingResult billingResult) {
175+
int responseCode = billingResult.getResponseCode();
176+
if (responseCode == BillingResponseCode.OK) {
177+
callbackContext.success(responseCode);
178+
} else {
179+
callbackContext.error(responseCode);
180+
}
179181
}
180-
}
181182

182-
public void onBillingServiceDisconnected() {
183-
callbackContext.error("Billing service disconnected");
183+
public void onBillingServiceDisconnected() {
184+
callbackContext.error("Billing service disconnected");
185+
}
184186
}
185-
}
186-
);
187+
);
188+
} catch (SecurityException e) {
189+
callbackContext.error(e.getMessage());
190+
}
187191
}
188192

189193
private void getProducts(
@@ -295,7 +299,7 @@ public void onQueryPurchasesResponse(
295299
);
296300
}
297301

298-
private void aknowledgePurchase(
302+
private void acknowledgePurchase(
299303
String purchaseToken,
300304
CallbackContext callbackContext
301305
) {

www/js/ace/ace.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/ext-inline_autocomplete.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/ext-language_tools.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/ext-prompt.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-apex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-asl.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-astro.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-c_cpp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-coldfusion.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-csharp.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-csound_document.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-csound_orchestra.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-css.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-curly.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/js/ace/mode-d.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)