fix: apply repositories.gradle for cordova.gradle dependencies (#1816)

This commit is contained in:
エリス
2025-07-05 13:41:58 +09:00
committed by GitHub
parent 484c60e483
commit cab5c5b7ec
3 changed files with 6 additions and 4 deletions

2
.gitignore vendored
View File

@@ -30,6 +30,8 @@ example
/test/.externalNativeBuild
/test/androidx/cdv-gradle-config.json
/test/androidx/repositories.gradle
/test/androidx/app/repositories.gradle
/test/androidx/tools
/test/androidx/build
/test/assets/www/.tmp*

View File

@@ -240,10 +240,8 @@ ext {
}
buildscript {
repositories {
google()
mavenCentral()
}
apply from: 'repositories.gradle'
repositories repos
dependencies {
classpath 'io.github.g00fy2:versioncompare:1.4.1@jar'

View File

@@ -62,6 +62,8 @@ class AndroidTestRunner {
.then(_ => {
// TODO we should probably not only copy these files, but instead create a new project from scratch
fs.copyFileSync(path.resolve(this.projectDir, '../../framework/cdv-gradle-config-defaults.json'), path.resolve(this.projectDir, 'cdv-gradle-config.json'));
fs.copyFileSync(path.resolve(this.projectDir, '../../framework/repositories.gradle'), path.resolve(this.projectDir, 'repositories.gradle'));
fs.copyFileSync(path.resolve(this.projectDir, '../../framework/repositories.gradle'), path.resolve(this.projectDir, 'app', 'repositories.gradle'));
fs.cpSync(path.resolve(this.projectDir, '../../templates/project/tools'), path.resolve(this.projectDir, 'tools'), { recursive: true });
fs.copyFileSync(
path.join(__dirname, '../templates/project/assets/www/cordova.js'),