fixed outdated capacitor

This commit is contained in:
2026-10-05 11:08:26 -07:00
parent 818b03cfd3
commit c3358fee44
7 changed files with 2 additions and 1593 deletions

5
android/.gitignore vendored
View File

@@ -89,13 +89,8 @@ lint/tmp/
# Android Profiling
*.hprof
# Cordova plugins for Capacitor
capacitor-cordova-android-plugins
# Copied web assets
app/src/main/assets/public
# Generated Config files
app/src/main/assets/capacitor.config.json
app/src/main/assets/capacitor.plugins.json
app/src/main/res/xml/config.xml

View File

@@ -1,19 +0,0 @@
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
}
if (hasProperty('postBuildExtras')) {
postBuildExtras()
}

View File

@@ -1,25 +0,0 @@
package com.getcapacitor.myapp;
import static org.junit.Assert.*;
import android.content.Context;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.platform.app.InstrumentationRegistry;
import org.junit.Test;
import org.junit.runner.RunWith;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.getcapacitor.app", appContext.getPackageName());
}
}

View File

@@ -1,18 +0,0 @@
package com.getcapacitor.myapp;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}

1521
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -4,15 +4,11 @@
"description": "",
"type": "module",
"scripts": {
"build:web": "node -e \"const fs = require('fs'); fs.rmSync('www', { recursive: true, force: true }); fs.mkdirSync('www'); ['css', 'js', 'assets'].forEach(d => fs.cpSync(d, 'www/' + d, { recursive: true })); fs.copyFileSync('index.html', 'www/index.html');\"",
"dev": "node scripts/build-apk.mjs",
"release": "node scripts/release.mjs",
"android": "node scripts/build-android.mjs"
},
"dependencies": {
"@capacitor/android": "^6.2.2",
"@capacitor/cli": "^6.2.2",
"@capacitor/core": "^6.2.2",
"@vyla-entertainment/sdk": "^1.14.0",
"dotenv": "^16.4.5",
"express": "^4.19.2",
@@ -26,4 +22,4 @@
"keywords": [],
"author": "",
"license": "ISC"
}
}

View File

@@ -38,7 +38,6 @@ const version = pkg.version || '1.0.0';
const tag = `v${version}`;
run('node', ['scripts/build-android.mjs']);
run('npx', ['cap', 'sync', 'android']);
run(win ? 'gradlew.bat' : './gradlew', ['assembleRelease'], androidDir);
const relDir = path.join(androidDir, 'app/build/outputs/apk/release');