Skip to content

Commit 5345b20

Browse files
authored
Merge pull request #23 from OutSystems/feat/RDMR-412/update-gradle
RDMR-412 :: MABS 11 :: Update Android tools
2 parents 97b3e06 + 060b1ce commit 5345b20

33 files changed

+56
-47
lines changed

framework/cdv-gradle-config-defaults.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"MIN_SDK_VERSION": 28,
2+
"MIN_SDK_VERSION": 29,
33
"SDK_VERSION": 35,
44
"COMPILE_SDK_VERSION": null,
5-
"GRADLE_VERSION": "8.7",
5+
"GRADLE_VERSION": "8.11.1",
66
"MIN_BUILD_TOOLS_VERSION": "35.0.0",
7-
"AGP_VERSION": "8.3.0",
7+
"AGP_VERSION": "8.7.2",
88
"KOTLIN_VERSION": "1.9.24",
9-
"ANDROIDX_APP_COMPAT_VERSION": "1.6.1",
10-
"ANDROIDX_WEBKIT_VERSION": "1.8.0",
9+
"ANDROIDX_APP_COMPAT_VERSION": "1.7.0",
10+
"ANDROIDX_WEBKIT_VERSION": "1.12.1",
1111
"ANDROIDX_CORE_SPLASHSCREEN_VERSION": "1.0.1",
12-
"GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION": "4.4.0",
12+
"GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION": "4.4.2",
1313
"IS_GRADLE_PLUGIN_GOOGLE_SERVICES_ENABLED": false,
1414
"IS_GRADLE_PLUGIN_KOTLIN_ENABLED": true,
1515
"PACKAGE_NAMESPACE": "io.cordova.helloCordova",

lib/Adb.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const os = require('os');
20+
const os = require('node:os');
2121
const execa = require('execa');
2222
const events = require('cordova-common').events;
2323
const CordovaError = require('cordova-common').CordovaError;

lib/AndroidManifest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
20+
const fs = require('node:fs');
2121
const xml = require('cordova-common').xmlHelpers;
2222

2323
const DEFAULT_ORIENTATION = 'default';

lib/AndroidProject.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const path = require('path');
20+
const fs = require('node:fs');
21+
const path = require('node:path');
2222
const properties_parser = require('properties-parser');
2323
const pluginHandlers = require('./pluginHandlers');
2424
const CordovaGradleConfigParserFactory = require('./config/CordovaGradleConfigParserFactory');

lib/Api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121

2222
const AndroidProject = require('./AndroidProject');
2323
const PluginManager = require('cordova-common').PluginManager;

lib/build.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
21-
const fs = require('fs');
20+
const path = require('node:path');
21+
const fs = require('node:fs');
2222
const nopt = require('nopt');
2323
const untildify = require('untildify');
2424
const { parseArgsStringToArgv } = require('string-argv');

lib/builders/ProjectBuilder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const execa = require('execa');
2323
const glob = require('fast-glob');
2424
const events = require('cordova-common').events;

lib/check_reqs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const execa = require('execa');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const fs = require('fs-extra');
2323
const { forgivingWhichSync, isWindows, isDarwin } = require('./utils');
2424
const java = require('./env/java');

lib/config/CordovaGradleConfigParser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const events = require('cordova-common').events;
2323

2424
class CordovaGradleConfigParser {

lib/config/GradlePropertiesParser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const path = require('path');
20+
const fs = require('node:fs');
21+
const path = require('node:path');
2222
const propertiesParser = require('properties-parser');
2323
const events = require('cordova-common').events;
2424

lib/create.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121
const fs = require('fs-extra');
2222
const utils = require('./utils');
2323
const check_reqs = require('./check_reqs');

lib/emulator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const execa = require('execa');
2121
const fs = require('fs-extra');
2222
const android_versions = require('android-versions');
23-
const path = require('path');
23+
const path = require('node:path');
2424
const Adb = require('./Adb');
2525
const events = require('cordova-common').events;
2626
const CordovaError = require('cordova-common').CordovaError;

lib/env/java.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
const execa = require('execa');
2121
const fs = require('fs-extra');
22-
const path = require('path');
22+
const path = require('node:path');
2323
const glob = require('fast-glob');
2424
const { CordovaError, events } = require('cordova-common');
2525
const utils = require('../utils');

lib/pluginHandlers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
const fs = require('fs-extra');
18-
const path = require('path');
18+
const path = require('node:path');
1919
const isPathInside = require('is-path-inside');
2020
const events = require('cordova-common').events;
2121
const CordovaError = require('cordova-common').CordovaError;

lib/prepare.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const nopt = require('nopt');
2323
const glob = require('fast-glob');
2424
const dedent = require('dedent');

lib/target.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const { inspect } = require('util');
20+
const { inspect } = require('node:util');
2121
const execa = require('execa');
2222
const Adb = require('./Adb');
2323
const build = require('./build');

lib/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
const fs = require('fs-extra');
2727
const which = require('which');
28-
const os = require('os');
28+
const os = require('node:os');
2929

3030
/**
3131
* Reads, searches, and replaces the found occurences with replacementString and then writes the file back out.

spec/e2e/e2e.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
under the License.
1818
*/
1919

20-
const os = require('os');
20+
const os = require('node:os');
2121
const fs = require('fs-extra');
22-
const path = require('path');
22+
const path = require('node:path');
2323
const { EventEmitter } = require('events');
2424
const { ConfigParser, PluginInfoProvider } = require('cordova-common');
2525
const Api = require('../../lib/Api');

spec/fixtures/android_studio_project/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ distributionBase=GRADLE_USER_HOME
2020
distributionPath=wrapper/dists
2121
zipStoreBase=GRADLE_USER_HOME
2222
zipStorePath=wrapper/dists
23-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
23+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip

spec/unit/AndroidManifest.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const os = require('os');
22-
const path = require('path');
20+
const fs = require('node:fs');
21+
const os = require('node:os');
22+
const path = require('node:path');
2323
const rewire = require('rewire');
2424

2525
describe('AndroidManifest', () => {

spec/unit/AndroidProject.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121
const rewire = require('rewire');
2222
const MockCordovaGradleConfigParser = require('./mocks/config/MockCordovaGradleConfigParser');
2323
const CordovaGradleConfigParserFactory = require('../../lib/config/CordovaGradleConfigParserFactory');

spec/unit/Api.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const os = require('os');
21-
const path = require('path');
20+
const os = require('node:os');
21+
const path = require('node:path');
2222
const common = require('cordova-common');
2323
const EventEmitter = require('events');
2424

spec/unit/android_sdk.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
under the License.
1818
*/
1919

20-
const fs = require('fs');
21-
const path = require('path');
20+
const fs = require('node:fs');
21+
const path = require('node:path');
2222
const rewire = require('rewire');
2323

2424
describe('android_sdk', () => {

spec/unit/builders/ProjectBuilder.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const rewire = require('rewire');
2323
const { isWindows } = require('../../../lib/utils');
2424

spec/unit/check_reqs.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
const rewire = require('rewire');
2121
const android_sdk = require('../../lib/android_sdk');
2222
const fs = require('fs-extra');
23-
const path = require('path');
23+
const path = require('node:path');
2424
const events = require('cordova-common').events;
2525
const which = require('which');
2626

spec/unit/create.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const utils = require('../../lib/utils');
2222
const create = rewire('../../lib/create');
2323
const check_reqs = require('../../lib/check_reqs');
2424
const fs = require('fs-extra');
25-
const path = require('path');
25+
const path = require('node:path');
2626
const MockCordovaGradleConfigParser = require('./mocks/config/MockCordovaGradleConfigParser');
2727
const CordovaGradleConfigParserFactory = require('../../lib/config/CordovaGradleConfigParserFactory');
2828

spec/unit/emulator.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const fs = require('fs-extra');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const rewire = require('rewire');
2323
const which = require('which');
2424

spec/unit/java.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
under the License.
1818
*/
1919

20-
const path = require('path');
20+
const path = require('node:path');
2121
const rewire = require('rewire');
2222
const { CordovaError } = require('cordova-common');
2323
const utils = require('../../lib/utils');

spec/unit/pluginHandlers/common.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
const rewire = require('rewire');
2020
const common = rewire('../../../lib/pluginHandlers');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const fs = require('fs-extra');
2323
const osenv = require('os');
2424

spec/unit/pluginHandlers/handlers.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
const rewire = require('rewire');
2121
const common = rewire('../../../lib/pluginHandlers');
2222
const android = common.__get__('handlers');
23-
const path = require('path');
23+
const path = require('node:path');
2424
const fs = require('fs-extra');
25-
const os = require('os');
25+
const os = require('node:os');
2626
const temp = path.join(os.tmpdir(), 'plugman');
2727
const plugins_dir = path.join(temp, 'cordova/plugins');
2828
const dummyplugin = path.join(__dirname, '../../fixtures/org.test.plugins.dummyplugin');

spec/unit/prepare.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
const rewire = require('rewire');
21-
const path = require('path');
21+
const path = require('node:path');
2222
const CordovaError = require('cordova-common').CordovaError;
2323
const GradlePropertiesParser = require('../../lib/config/GradlePropertiesParser');
2424
const utils = require('../../lib/utils');

templates/project/app/build.gradle

+10-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,16 @@ dependencies {
335335
implementation "androidx.core:core-splashscreen:${cordovaConfig.ANDROIDX_CORE_SPLASHSCREEN_VERSION}"
336336

337337
if (cordovaConfig.IS_GRADLE_PLUGIN_KOTLIN_ENABLED) {
338-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${cordovaConfig.KOTLIN_VERSION}"
338+
implementation "org.jetbrains.kotlin:kotlin-stdlib:${cordovaConfig.KOTLIN_VERSION}"
339+
}
340+
341+
constraints {
342+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${cordovaConfig.KOTLIN_VERSION}") {
343+
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
344+
}
345+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${cordovaConfig.KOTLIN_VERSION}") {
346+
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
347+
}
339348
}
340349

341350
// SUB-PROJECT DEPENDENCIES START

test/run_java_unit_tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
under the License.
2020
*/
2121

22-
const path = require('path');
22+
const path = require('node:path');
2323
const execa = require('execa');
2424
const fs = require('fs-extra');
2525
const ProjectBuilder = require('../lib/builders/ProjectBuilder');

0 commit comments

Comments
 (0)