feat: initial support for offline tiles
Some checks failed
TrafficCue CI / check (push) Failing after 1m5s
TrafficCue CI / build (push) Successful in 49s

works by copying mbtiles (which are just sqlite databases) into the local sqlite database
This commit is contained in:
2025-07-03 17:59:08 +02:00
parent c16e2e98ec
commit 94b8b8559c
11 changed files with 256 additions and 7 deletions

View File

@@ -40,6 +40,7 @@ dependencies {
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
implementation project(':capacitor-cordova-android-plugins')
implementation 'com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:2.0.1'
}
apply from: 'capacitor.build.gradle'

View File

@@ -10,6 +10,7 @@ android {
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
implementation project(':capacitor-community-native-audio')
implementation project(':capacitor-community-sqlite')
implementation project(':capacitor-community-text-to-speech')
}

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
@@ -13,6 +13,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:usesCleartextTraffic="true"
tools:replace="android:allowBackup"
android:theme="@style/AppTheme">
<activity

View File

@@ -5,5 +5,8 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
include ':capacitor-community-native-audio'
project(':capacitor-community-native-audio').projectDir = new File('../node_modules/@capacitor-community/native-audio/android')
include ':capacitor-community-sqlite'
project(':capacitor-community-sqlite').projectDir = new File('../node_modules/@capacitor-community/sqlite/android')
include ':capacitor-community-text-to-speech'
project(':capacitor-community-text-to-speech').projectDir = new File('../node_modules/@capacitor-community/text-to-speech/android')