Using trapeze to set permissions in Android build directory's manifest.

This commit is contained in:
Eric van der Vlist 2022-09-01 13:51:16 +02:00
parent 375d173d6d
commit f20e082697
5 changed files with 3582 additions and 63 deletions

View File

@ -0,0 +1,3 @@
# Dyomedea
Application de randonnée

3624
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,6 +16,7 @@
"@testing-library/jest-dom": "^5.11.9", "@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5", "@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.6.3", "@testing-library/user-event": "^12.6.3",
"@trapezedev/configure": "^5.0.1",
"@types/jest": "^26.0.20", "@types/jest": "^26.0.20",
"@types/node": "^12.19.15", "@types/node": "^12.19.15",
"@types/react": "^18.0.18", "@types/react": "^18.0.18",

View File

@ -1,6 +1,6 @@
{ {
"short_name": "Ionic App", "short_name": "Dyomedea",
"name": "My Ionic App", "name": "Dyomedea",
"icons": [ "icons": [
{ {
"src": "assets/icon/favicon.png", "src": "assets/icon/favicon.png",

13
trapeze.config.yaml Normal file
View File

@ -0,0 +1,13 @@
platforms:
android:
manifest:
- file: AndroidManifest.xml
target: manifest
delete: //uses-permission
- file: AndroidManifest.xml
target: manifest
inject: |
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />