Running ns build android
will create an Android project under platforms/android
. This project
can be opened in Android Studio and published in the Play Store like any other Android app.
You can also find more information on building a signed release .apk
here.
Running ns prepare ios --release
will generate an Xcode project at /platforms/ios/kiwiirc-app.xcworkspace
. You can open this project on Xcode and publish it like any other iOS app.
You can find more information on the NativeScript publishing guide for iOS.
You can publish the app to the App Store (iOS) and Google Play (Android) with fastlane. For more options and/or troubleshooting, see this more complete guide.
(macOS only) Make sure you have the latest version of the Xcode command line tools installed:
xcode-select --install
Install fastlane using
[sudo] gem install fastlane -NV
or alternatively using brew cask install fastlane
.
More info on setting up the environment here.
Create dotenv
:
cd kiwiirc-app
cp .env.default.example .env.default
Update the variables inside .env.default
.
fastlane match
makes certificate and provision profile management much easier. More on match
here. The basic steps are:
-
fastlane match init
-
Update the variables
GIT_URL
,APP_IDENTIFIER
,USERNAME
, andMATCH_PASSWORD
in.env.default
accordingly. -
Set the apple developer username and password to the variables
FASTLANE_USER
and
FASTLANE_PASSWORD
. It is recommended to create a new account for this purpose, without 2FA. -
Get the required certificates with
fastlane match
:
cd kiwiirc-app
fastlane ios certificates
fastlane ios ship_testflight
See here how to do that. Copy the json data to the PLAYSTORE_JSON_KEY_DATA
variable in .env.default
-
See here how to generate a keystore.
-
Copy the keystore file to
fastlane/keys/mobile.keystore
. -
In
.env.default
, set theKEYSTORE_PASSWORD
,KEYSTORE_ALIAS
, andKEYSTORE_ALIAS_PASSWORD
used to generate thekeystore
.
fastlane android alpha
fastlane android ship_playstore
-
Increment the version in
package.json
.Increment:
version
: the app version number. If you change this, the app will go through the review process and may take a couple of days to update.versionNumber
: If you only update this, the new bundle will be approved immediately.
-
Run the fastlane commands:
fastlane ios beta fastlane android beta