iOS Version
This small guide will help you getting started.
Requirements
- XCode 13 or greater
- iOS 14 or greater
Steps
1 - Download the project
Download Bleeding Edge or Stable version.
-
Bleeding Edge: Latest updates, features and bug fixes. Built-in extensions enabled by default.
-
Stable version: Battle tested. Built-in extensions disabled by default.
Decompress and open App.xcworkspace
file (White icon).
Find sources/xcode/App/JS/lib/screens/main.js
.
2 - Configure your website
Put your URL for your application. This can be an external url or an HTML file.
Local Files
If you use res://
you can access local html files such as the example index.html
.
You can store local files in the Files
directory.
index.html
Is the example html file with code examples to test different Jasonelle features.
3 - Allowed URLs
By default Jasonelle will open all urls. If you wish to limit this behaviour you can use an allowed
urls property in the configuration file.
Any url that is not present in the allowed list will force open using the native browser.
Check the Configuration File
Example
List the allowed urls. Otherwise it will launch native browser If not present will allow all urls
Put the same URL from main.js here to allow it (just the domain)
allowed: ["file://", "google.cl"]
4 - Done
You can now configure your project as a normal XCode iOS. Change your App Icon and other settings.
Happy Coding!.
ARM Processors (M1, M2...)
Ensure that you are running the arm
binaries by appending -arm
to the binaries names inside build
file, as shown below.
Note: Since 3.0.2
this is automatically detected.
- ESBUILD=${SRCROOT}/../Tools/esbuild/esbuild-arm
- DPRINT=${SRCROOT}/../Tools/dprint/dprint-arm