forked from MapComplete/MapComplete
Android: attempt to add verified link
This commit is contained in:
parent
79d2d286be
commit
2e5ab74114
10 changed files with 5581 additions and 681 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -51,3 +51,4 @@ public/assets/generated/
|
|||
public/assets/langs/*
|
||||
android/
|
||||
dist-full/
|
||||
public/assets/icons/*.webp
|
||||
|
|
2
android
2
android
|
@ -1 +1 @@
|
|||
Subproject commit 3a28ccb4fb779c5f318563eaa708639aeebddc5e
|
||||
Subproject commit 653a12bb198e50191ea4496ddbacf468e4ba963c
|
BIN
assets/icon-background.png
Normal file
BIN
assets/icon-background.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 679 KiB |
BIN
assets/icon-foreground.png
Normal file
BIN
assets/icon-foreground.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 679 KiB |
BIN
assets/icon-only.png
Normal file
BIN
assets/icon-only.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 679 KiB |
BIN
assets/splash-dark.png
Normal file
BIN
assets/splash-dark.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 679 KiB |
3404
assets/svg/mapcomplete_logo_centered.svg
Normal file
3404
assets/svg/mapcomplete_logo_centered.svg
Normal file
File diff suppressed because one or more lines are too long
After (image error) Size: 157 KiB |
2805
package-lock.json
generated
2805
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -158,6 +158,7 @@
|
|||
],
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^6.1.2",
|
||||
"@capacitor/assets": "^3.0.5",
|
||||
"@capacitor/core": "^6.1.2",
|
||||
"@capacitor/geolocation": "^6.0.1",
|
||||
"@comunica/core": "^3.0.1",
|
||||
|
|
49
scripts/prepareAndroid.sh
Executable file
49
scripts/prepareAndroid.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Copy all necessary files from the 'dist' directory into dist full
|
||||
# To be executed from the `MapComplete` repo root
|
||||
echo '''
|
||||
import type { CapacitorConfig } from "@capacitor/cli";
|
||||
|
||||
const config: CapacitorConfig = {
|
||||
appId: "org.mapcomplete",
|
||||
appName: "MapComplete",
|
||||
webDir: "dist-full"
|
||||
};
|
||||
|
||||
export default config;
|
||||
''' > capacitor.config.ts
|
||||
|
||||
rm -rf dist-full
|
||||
mkdir dist-full
|
||||
cp dist/*.html dist-full/
|
||||
cp dist/*.css dist-full/
|
||||
# cp dist/*.webmanifest dist-full/ # Not needed
|
||||
cp -r dist/css dist-full/
|
||||
|
||||
mkdir dist-full/assets
|
||||
cp dist/assets/*.js dist-full/assets
|
||||
cp dist/assets/*.svg dist-full/assets
|
||||
cp dist/assets/*.woff dist-full/assets
|
||||
cp dist/assets/*.ttf dist-full/assets
|
||||
cp dist/assets/*.png dist-full/assets
|
||||
cp dist/assets/*.json dist-full/assets
|
||||
cp dist/assets/*.css dist-full/assets
|
||||
|
||||
cp -r dist/assets/data dist-full/assets
|
||||
cp -r dist/assets/docs dist-full/assets
|
||||
cp -r dist/assets/fonts dist-full/assets
|
||||
cp -r dist/assets/langs dist-full/assets
|
||||
cp -r dist/assets/layers dist-full/assets
|
||||
cp -r dist/assets/png dist-full/assets
|
||||
cp -r dist/assets/svg dist-full/assets
|
||||
cp -r dist/assets/templates dist-full/assets
|
||||
cp -r dist/assets/themes dist-full/assets
|
||||
|
||||
# mkdir dist-full/assets/generated
|
||||
|
||||
# assets/icon-only.png will be used as the app icon
|
||||
# See https://capacitorjs.com/docs/guides/splash-screens-and-icons
|
||||
npx capacitor-assets generate
|
||||
|
||||
npx cap sync
|
Loading…
Add table
Reference in a new issue