Skip to content

Commit 5f4cd75

Browse files
authored
Clarify requirements
1 parent 267411c commit 5f4cd75

File tree

1 file changed

+17
-21
lines changed

1 file changed

+17
-21
lines changed

resources/views/docs/mobile/1/getting-started/installation.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,30 @@ order: 100
77

88
1. PHP 8.3+
99
2. Laravel 10 or higher
10-
3. An Apple Silicon Mac running macOS 12+ with Xcode 16+
11-
4. An active [Apple Developer account](https://developer.apple.com/)
12-
5. [A NativePHP for Mobile license](https://nativephp.com/mobile)
13-
6. _Optional_ iOS device
10+
3. [A NativePHP for Mobile license](https://nativephp.com/mobile)
1411

15-
16-
#### For iOS
17-
1. An Apple Mac (ideally Silicon) running macOS 12+ with Xcode 16+
12+
### For iOS
13+
1. An Apple Silicon Mac running macOS 12+ with Xcode 16+
1814
2. An active [Apple Developer account](https://developer.apple.com/)
1915
3. You can download Xcode from the Mac App Store
16+
4. _Optional_ iOS device
17+
18+
> **Note** You cannot build iOS apps on Windows or Linux
2019
21-
#### For Android
20+
### For Android
2221
1. [Android Studio Giraffe (or later)](https://developer.android.com/studio)
2322
2. The following environment variables set.
2423
3. You should be able to successfully run `java -v` and `adb devices` from the terminal.
2524
4. **Windows only**: You must have [7zip](https://www.7-zip.org/) installed.
2625

27-
#### For macOS
26+
#### On macOS
2827
```shell
2928
export JAVA_HOME=$(/usr/libexec/java_home -v 17) // This isn't required if JAVA_HOME is already set in the Windows Env Variables
3029
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
3130
export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
3231
```
3332
34-
#### For Windows
33+
#### On Windows
3534
```shell
3635
set ANDROID_SDK_ROOT=C:\Users\yourname\AppData\Local\Android\Sdk
3736
set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_SDK_ROOT%\platform-tools
@@ -40,16 +39,14 @@ set PATH=%PATH%;%JAVA_HOME%\bin;%ANDROID_SDK_ROOT%\platform-tools
4039
set JAVA_HOME=C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot
4140
```
4241
43-
> **Note** You cannot build iOS apps on Windows or Linux
44-
45-
You don't _need_ a physical iOS/Android device to compile your application and test it for your app, as NativePHP for Mobile supports
42+
You don't _need_ a physical iOS/Android device to compile and test your application, as NativePHP for Mobile supports
4643
the iOS Simulator and Android emulators. However, we highly recommend that you test your application on a real device before submitting to the
47-
App/Google Play Store.
44+
Apple App Store and Google Play Store.
4845
4946
## Laravel
5047
5148
NativePHP for Mobile is built to work with Laravel. You can install it into an existing Laravel application, or
52-
[start a new one](https://laravel.com/docs/installation). The most painless way to get PHP and Node up and running on your system is with
49+
[start a new one](https://laravel.com/docs/installation). The most painless way to get PHP up and running on Mac and Windows is with
5350
[Laravel Herd](https://herd.laravel.com). It's fast and free!
5451
5552
@@ -86,7 +83,7 @@ iOS and Android.
8683
**Before** running the `install` command it is important to set the following variables in your `.env`:
8784
8885
```shell
89-
NATIVEPHP_APP_ID=com.nativephp.yourapp
86+
NATIVEPHP_APP_ID=com.yourcompany.yourapp
9087
NATIVEPHP_APP_VERSION="DEBUG"
9188
NATIVEPHP_APP_VERSION_CODE="1"
9289
```
@@ -97,8 +94,7 @@ NATIVEPHP_APP_VERSION_CODE="1"
9794
php artisan native:install
9895
```
9996
100-
The NativePHP installer works similarly to NativePHP for Desktop, taking care of setting up and configuring your Laravel
101-
application to work with iOS and/or Android.
97+
The NativePHP installer takes care of setting up and configuring your Laravel application to work with iOS and Android.
10298
10399
## Start your app
104100
@@ -115,13 +111,13 @@ This will start compiling your application and boot it on whichever device you s
115111
116112
### Running on a real device
117113
118-
#### For iOS
119-
If you want to run your app on a real mobile device, you need to make sure the device is in
114+
#### On iOS
115+
If you want to run your app on a real iOS device, you need to make sure it is in
120116
[Developer Mode](https://developer.apple.com/documentation/xcode/enabling-developer-mode-on-a-device)
121117
and that it's been added to your Apple Developer account as
122118
[a registered device](https://developer.apple.com/account/resources/devices/list).
123119
124-
#### For Android
120+
#### On Android
125121
On Android you need to [enable developer options](https://developer.android.com/studio/debug/dev-options#enable)
126122
and have USB debugging (ADB) enabled.
127123

0 commit comments

Comments
 (0)