Skip to content

Commit 159adc3

Browse files
committed
Change android package name
1 parent d8162a7 commit 159adc3

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

mobile/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Android release
2+
```bash
3+
npx cap sync
4+
# Build .aab file (will fail signing, use the next command to fix)
5+
npx cap build android --keystorepath "<path_to_keystore>" --keystorepass "<keystore_pass>" --keystorealias "<keystore_alias>" --keystorealiaspass "<keystore_alias_pass>" --androidreleasetype AAB
6+
# Sign the .aab
7+
jarsigner -verbose -keystore "<path_to_keystore>" "<path_to_aab>" "<keystore_alias>"
8+
```
9+
10+
Then, `mobile/android/app/build/outputs/bundle/release/app-released.aab` is a signed .aab ready for publishing.

mobile/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
namespace "com.pulse.app"
4+
namespace "com.pulse_editor.app"
55
compileSdk rootProject.ext.compileSdkVersion
66
defaultConfig {
7-
applicationId "com.pulse.app"
7+
applicationId "com.pulse_editor.app"
88
minSdkVersion rootProject.ext.minSdkVersion
99
targetSdkVersion rootProject.ext.targetSdkVersion
1010
versionCode 1

mobile/android/app/src/main/java/com/pulse/app/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.pulse.app;
1+
package com.pulse_editor.app;
22

33
import com.getcapacitor.BridgeActivity;
44

mobile/android/app/src/main/res/values/strings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<resources>
33
<string name="app_name">Pulse Editor</string>
44
<string name="title_activity_main">Pulse Editor</string>
5-
<string name="package_name">com.pulse.app</string>
6-
<string name="custom_url_scheme">com.pulse.app</string>
5+
<string name="package_name">com.pulse_editor.app</string>
6+
<string name="custom_url_scheme">com.pulse_editor.app</string>
77
</resources>

mobile/capacitor.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CapacitorConfig } from "@capacitor/cli";
22

33
const config: CapacitorConfig = {
4-
appId: "com.pulse.app",
4+
appId: "com.pulse_editor.app",
55
appName: "Pulse Editor",
66
webDir: "../build/next",
77
android: {

0 commit comments

Comments
 (0)