mirror of
https://github.com/apache/cordova-android.git
synced 2025-03-26 07:11:16 +08:00
feat: bump gradle to 8.13 (#1785)
This commit is contained in:
parent
7f9529408b
commit
aad36fe565
@ -2,7 +2,7 @@
|
|||||||
"MIN_SDK_VERSION": 24,
|
"MIN_SDK_VERSION": 24,
|
||||||
"SDK_VERSION": 35,
|
"SDK_VERSION": 35,
|
||||||
"COMPILE_SDK_VERSION": null,
|
"COMPILE_SDK_VERSION": null,
|
||||||
"GRADLE_VERSION": "8.9",
|
"GRADLE_VERSION": "8.13",
|
||||||
"MIN_BUILD_TOOLS_VERSION": "35.0.0",
|
"MIN_BUILD_TOOLS_VERSION": "35.0.0",
|
||||||
"AGP_VERSION": "8.7.3",
|
"AGP_VERSION": "8.7.3",
|
||||||
"KOTLIN_VERSION": "1.9.24",
|
"KOTLIN_VERSION": "1.9.24",
|
||||||
|
@ -134,14 +134,14 @@ describe('ProjectBuilder', () => {
|
|||||||
execaSpy.and.resolveTo();
|
execaSpy.and.resolveTo();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should run gradle wrapper 8.7', async () => {
|
it('should run gradle wrapper 8.13', async () => {
|
||||||
await builder.installGradleWrapper('8.7');
|
await builder.installGradleWrapper('8.13');
|
||||||
expect(execaSpy).toHaveBeenCalledWith('gradle', ['-p', path.normalize('/root/tools'), 'wrapper', '--gradle-version', '8.7'], jasmine.any(Object));
|
expect(execaSpy).toHaveBeenCalledWith('gradle', ['-p', path.normalize('/root/tools'), 'wrapper', '--gradle-version', '8.13'], jasmine.any(Object));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL should override gradle version', async () => {
|
it('CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL should override gradle version', async () => {
|
||||||
process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL = 'https://dist.local';
|
process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL = 'https://dist.local';
|
||||||
await builder.installGradleWrapper('8.7');
|
await builder.installGradleWrapper('8.13');
|
||||||
delete process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL;
|
delete process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL;
|
||||||
expect(execaSpy).toHaveBeenCalledWith('gradle', ['-p', path.normalize('/root/tools'), 'wrapper', '--gradle-distribution-url', 'https://dist.local'], jasmine.any(Object));
|
expect(execaSpy).toHaveBeenCalledWith('gradle', ['-p', path.normalize('/root/tools'), 'wrapper', '--gradle-distribution-url', 'https://dist.local'], jasmine.any(Object));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user