update android configuration for capacitor

This commit is contained in:
Tom (plebeius.eth)
2024-10-13 16:29:14 +02:00
parent 73e12ccbae
commit c80fc5a284
9 changed files with 116 additions and 71 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
android {
namespace "plebchan.android"
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "plebchan.android"
@@ -24,6 +25,9 @@ android {
}
repositories {
google()
mavenCentral()
maven { url "https://maven.google.com" }
flatDir{
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
}
@@ -33,10 +37,11 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
implementation project(':capacitor-android')
implementation project(':capacitor-cordova-android-plugins')
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
implementation project(':capacitor-cordova-android-plugins')
implementation "org.apache.cordova:framework:$cordovaAndroidVersion"
}
apply from: 'capacitor.build.gradle'
+2 -2
View File
@@ -2,8 +2,8 @@
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
+3 -4
View File
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="plebchan.android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
@@ -15,7 +13,8 @@
android:name="plebchan.android.MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBarLaunch"
android:launchMode="singleTask">
android:launchMode="singleTask"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />