You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x/examples/website-wrapper-app/README.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ To verify that your system has the necessary dependencies to generate your web w
20
20
> [!WARNING]
21
21
> You can only build iOS apps on MacOS.
22
22
23
-
* You will need your site's domain.
23
+
* You will need the url you want to load initially in your app.
24
24
* You will need [go](https://golang.org/) to build the SDK library.
25
25
* You will need [Node.js](https://nodejs.org/en/) for the project setup and web server.
26
26
* You will need [XCode](https://developer.apple.com/xcode/).
@@ -30,7 +30,7 @@ To verify that your system has the necessary dependencies to generate your web w
30
30
31
31
```sh
32
32
npm run reset
33
-
npm run build:project -- --platform=ios --entryDomain="www.example.com"
33
+
npm run build:project -- --platform=ios --entryUrl="https://www.example.com"
34
34
npm run open:ios
35
35
```
36
36
@@ -62,16 +62,20 @@ Many sites don't handle their own navigation - if this applies to you, you can r
62
62
* You will need an [ngrok account](https://ngrok.com/), from which you can get your [`--navigatorToken`](https://dashboard.ngrok.com/get-started/your-authtoken)
63
63
64
64
```sh
65
-
npm run start -- --platform=ios --entryDomain="www.example.com" \
65
+
npm run start -- --platform=ios --entryUrl="https://www.example.com" \
[Follow these instructions on how to publish your app for beta testing and the App Store.](https://developer.apple.com/documentation/xcode/distributing-your-app-for-beta-testing-and-releases)
72
+
69
73
## Building the app project for **Android**
70
74
71
75
> [!WARNING]
72
76
> If you want to build Android on Windows, please use [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install)
73
77
74
-
* You will need your site's domain.
78
+
* You will need the url you want to load initially in your app.
75
79
* You will need [Node.js](https://nodejs.org/en/) for the project setup and web server.
76
80
* You will need [go](https://golang.org/) to build the SDK library.
77
81
* You will need [JDK 17](https://stackoverflow.com/a/70649641) to build the app.
npm run build:project -- --platform=android --entryDomain="www.example.com"
90
+
npm run build:project -- --platform=android --entryUrl="https://www.example.com"
87
91
npm run open:android
88
92
```
89
93
@@ -115,16 +119,23 @@ Many sites don't handle their own navigation - if this applies to you, you can r
115
119
* You will need an [ngrok account](https://ngrok.com/), from which you can get your [`--navigatorToken`](https://dashboard.ngrok.com/get-started/your-authtoken)
116
120
117
121
```sh
118
-
npm run start -- --platform=android --entryDomain="www.example.com" \
122
+
npm run start -- --platform=android --entryUrl="https://www.example.com" \
|`--platform`|**(Required)** Specifies the target platform for the build. |`"ios"` or `"android"`|
127
-
|`--entryDomain`|**(Required)** The primary domain of your website. | Any valid domain name |
135
+
|`--entryUrl`|**(Required)** The primary url of your website. | Any valid url |
136
+
|`--appId`| The unique identifier for the app (e.g., iOS Bundle ID, Android Application ID). | A reverse domain name string (e.g., `com.company.appname`) |
137
+
|`--appName`| The user-visible name of the application. | Any valid application name string (e.g., "My Awesome App") |
138
+
|`--output`| The directory where the generated app project files will be saved. | A valid, absolute file path (e.g., `/users/me/my-generated-app`) |
128
139
|`--additionalDomains`| A list of other domains that should be accessible within the app. | Comma-separated domains |
129
140
|`--smartDialerConfig`| A JSON string containing the configuration for the [smart dialer feature](../../smart#yaml-config-for-the-smart-dialer). | Valid JSON string |
130
141
|`--navigatorToken`| Your ngrok authentication token for using the navigation proxy. | Your [ngrok auth token](https://dashboard.ngrok.com/get-started/your-authtoken)|
Copy file name to clipboardExpand all lines: x/examples/website-wrapper-app/wrapper_app_project/template/android/app/src/main/java/org/getoutline/pwa/Config.kt.handlebars
Copy file name to clipboardExpand all lines: x/examples/website-wrapper-app/wrapper_app_project/template/android/app/src/main/java/org/getoutline/pwa/MainActivity.kt.handlebars
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
packageorg.getoutline.pwa
1
+
package {{appId}}
2
2
3
3
import android.os.Bundle
4
4
import com.getcapacitor.BridgeActivity
@@ -63,4 +63,4 @@ class MainActivity : BridgeActivity() {
0 commit comments