Skip to content

Commit

Permalink
add android deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Nov 14, 2023
1 parent a09f858 commit 80eec27
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {
namespace "geoportail.app"
namespace "fr.ign.geoportail"
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "geoportail.app"
applicationId "fr.ign.geoportail"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionCode 3
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
Expand Down
8 changes: 7 additions & 1 deletion capacitor.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"appId": "geoportail.app",
"appId": "fr.ign.geoportail",
"appName": "geoportail-app",
"webDir": "www",
"server": {
"androidScheme": "https"
},
"android": {
"overrideUserAgent": "IGN-app-android"
},
"ios": {
"overrideUserAgent": "IGN-app-ios"
}
}
3 changes: 3 additions & 0 deletions deploiement-appli-mobile.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
## Capacitor
- `npm run build`
- `npx cap sync`
- `npx cap build --keystorepath "c:/Users/amaur/Downloads/ign.keystore" --keystorepass "G3oportail" --keystorealias "geoportail_mobile" --keystorealiaspass "G3oportail" --androidreleasetype "APK" android`
- `zipalign 4 ./android/app/build/outputs/apk/release/app-release-signed.apk ./android/app/build/outputs/apk/release/app-release-aligned.apk`
- `apksigner sign --ks /<chemin_vers>/ign.keystore --v1-signing-enabled true --v2-signing-enabled true ./android/app/build/outputs/apk/release/app-release-aligned.apk`

## Android

Expand Down

0 comments on commit 80eec27

Please sign in to comment.