[update] ci

This commit is contained in:
陶林 2022-05-24 15:37:14 +08:00
parent afa2ed6b3b
commit e03a55c980
5 changed files with 12932 additions and 2949 deletions

View File

@ -16,6 +16,10 @@ function main() {
let gradle_file = fs.readFileSync('./node_modules/cordova-android/lib/builders/ProjectBuilder.js').toString('utf-8');
let replaceFileContent = gradle_file.replace('const distributionUrl = process.env.CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL || `https://services.gradle.org/distributions/gradle-${config.GRADLE_VERSION}-all.zip`;', `const distributionUrl = '${gradle_cdn}';`)
fs.writeFileSync('./node_modules/cordova-android/lib/builders/ProjectBuilder.js', replaceFileContent)
// http加载
let http = fs.readFileSync('./platforms/android/app/src/main/AndroidManifest.xml').toString('utf-8');
let httpFileContent = http.replace('<application', `<application android:usesCleartextTraffic="true"`)
fs.writeFileSync('./platforms/android/app/src/main/AndroidManifest.xml', httpFileContent)
});
revRun.stdout.on('data', function (data) {
console.log(chalk.green(data));

View File

@ -1,31 +1,18 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.example.tao" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>APP</name>
<description>app</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org">
</author>
<content src="https://www.baidu.com" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="market:*" />
<platform name="android">
<preference name="Fullscreen" value="true" />
</platform>
</widget>
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="com.example.tao" version="1.0.0">
<name>APP</name>
<description>app</description>
<author email="dev@cordova.apache.org" href="https://cordova.apache.org"></author>
<content src="http://10.1.248.29:8003/"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
<allow-intent href="market:*"/>
<platform name="android">
<preference name="Fullscreen" value="true"/>
<icon src="logo.png"></icon>
</platform>
</widget>

9848
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,22 @@
"license": "Apache-2.0",
"devDependencies": {
"cordova-android": "^10.1.2",
"cordova-plugin-splashscreen": "^6.0.1"
"cordova-plugin-battery-status": "^2.0.3",
"cordova-plugin-camera": "^6.0.0",
"cordova-plugin-cszbar-jsg": "1.4.0",
"cordova-plugin-device": "^2.1.0",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-file": "^6.0.2",
"cordova-plugin-geolocation": "^4.1.0",
"cordova-plugin-inappbrowser": "^5.0.0",
"cordova-plugin-media": "^5.0.4",
"cordova-plugin-media-capture": "^3.0.3",
"cordova-plugin-network-information": "^3.0.0",
"cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-splashscreen": "^6.0.1",
"cordova-plugin-statusbar": "^3.0.0",
"cordova-plugin-vibration": "^3.1.1",
"es6-promise-plugin": "^4.2.2"
},
"cordova": {
"platforms": [
@ -25,7 +40,25 @@
"browser"
],
"plugins": {
"cordova-plugin-splashscreen": {}
"cordova-plugin-camera": {
"ANDROIDX_CORE_VERSION": "1.6.+"
},
"cordova-plugin-device": {},
"cordova-plugin-battery-status": {},
"cordova-plugin-dialogs": {},
"cordova-plugin-geolocation": {
"GPS_REQUIRED": "true"
},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-media": {},
"cordova-plugin-media-capture": {},
"cordova-plugin-network-information": {},
"cordova-plugin-screen-orientation": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-vibration": {},
"cordova-plugin-cszbar-jsg": {},
"cordova-plugin-cszbar": {}
}
},
"dependencies": {

5943
yarn.lock

File diff suppressed because it is too large Load Diff