-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8019288
commit e8e8c3a
Showing
21 changed files
with
183 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,13 @@ | |
}, | ||
"bundle": { | ||
"active": true, | ||
"targets": "all" | ||
"targets": "all", | ||
"icon": [ | ||
"icons/32x32.png", | ||
"icons/128x128.png", | ||
"icons/[email protected]", | ||
"icons/icon.icns", | ||
"icons/icon.ico" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"productName": "{{app_name}}", | ||
"version": "0.0.0", | ||
"identifier": "{{app_name}}", | ||
"identifier": "{{identifier}}", | ||
"build": { | ||
"beforeBuildCommand": "pnpm -F ui build && pnpm happ:build", | ||
"beforeBuildCommand": "npm run build && npm run build:happ", | ||
"devUrl": "http://localhost:1420", | ||
"frontendDist": "../ui/dist" | ||
}, | ||
|
@@ -16,6 +16,13 @@ | |
}, | ||
"bundle": { | ||
"active": true, | ||
"targets": "all" | ||
"targets": "all", | ||
"icon": [ | ||
"icons/32x32.png", | ||
"icons/128x128.png", | ||
"icons/[email protected]", | ||
"icons/icon.icns", | ||
"icons/icon.ico" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Building for Production | ||
|
||
To build a production version of your app, you just need to run this very simple command: | ||
|
||
::: code-group | ||
```bash [npm] | ||
npm run tauri android build | ||
``` | ||
|
||
```bash [yarn] | ||
yarn tauri android build | ||
``` | ||
|
||
```bash [pnpm] | ||
pnpm tauri android build | ||
``` | ||
::: | ||
|
||
Take into account that this will compile your app for all the different Android target architectures: it will take a long time. | ||
|
||
That's it! When the command finishes, you can copy the resulting `Android App Bundle` and [publish it on the `Google Play Store`](https://developer.android.com/studio/publish), or the release method of your choosing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Device Setup | ||
|
||
1. In your Android device, enable the [developer options](https://developer.android.com/studio/debug/dev-options). | ||
|
||
2. After you have enabled the developer options, [enable USB debbuging](https://developer.android.com/studio/debug/dev-options#Enable-debugging). | ||
|
||
3. Connect your Android device to your computer with a USB cable, and confirm in your Android device that you allow USB debugging from this computer. | ||
|
||
4. In the root folder of your repository, run: | ||
|
||
```bash | ||
nix develop .#androidDev | ||
``` | ||
|
||
This is a replacement command for the usual `nix develop`, which includes `Android Studio`, and all the necessary tooling that you need for Android development. Every time you want to test or build for the Android platform, you will need to enter the nix devShell this way and then your command from inside of it. | ||
|
||
> [!WARNING] | ||
> The first time this is run, it will take some time. This is because nix has to download and build all the necessary Android tooling. After the first time, it will be almost instant. | ||
5. Inside your `androidDev` devShell, run: | ||
|
||
```bash | ||
adb devices | ||
``` | ||
|
||
If all the previous steps were successful, you should see your device in the list of devices. | ||
|
||
--- | ||
|
||
That's it! You can now take a look at [developing for Android](./developing) to know what commands to use when targeting Android. |
Oops, something went wrong.