forked from MapComplete/MapComplete
Android: first somewhat working version
This commit is contained in:
parent
50e7888e2d
commit
1a7874c4bb
4 changed files with 10 additions and 48 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -49,3 +49,6 @@ error_changeset_*
|
|||
public/*.webmanifest
|
||||
public/assets/generated/
|
||||
public/assets/langs/*
|
||||
android/
|
||||
dist-full/
|
||||
android/
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme">
|
||||
|
||||
<activity
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths"></meta-data>
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
<!-- Permissions -->
|
||||
|
||||
<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" />
|
||||
|
||||
</manifest>
|
|
@ -1,9 +1,11 @@
|
|||
import type { CapacitorConfig } from '@capacitor/cli';
|
||||
|
||||
import type { CapacitorConfig } from "@capacitor/cli";
|
||||
|
||||
const config: CapacitorConfig = {
|
||||
appId: 'org.mapcomplete',
|
||||
appName: 'MapComplete',
|
||||
webDir: 'dist'
|
||||
appId: "org.mapcomplete",
|
||||
appName: "MapComplete",
|
||||
webDir: "dist-full"
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
"Use `https://<your domain name>/<path to mapcomplete>/land.html` as redirect URIs. You can add `http://127.0.0.1:1234/land.html` too for local development.",
|
||||
"Alternatively, you can override the `osm` credentials using the environment variables `VITE_OSM_OAUTH_CLIENT_ID` and `VITE_OSM_OAUTH_SECRET`"
|
||||
],
|
||||
"oauth_landing": null,
|
||||
"oauth_credentials": {
|
||||
"#": "This client-id is registered by 'MapComplete' on OpenStreetMap.org",
|
||||
"oauth_client_id": "K93H1d8ve7p-tVLE1ZwsQ4lAFLQk8INx5vfTLMu5DWk",
|
||||
|
|
Loading…
Add table
Reference in a new issue