Нема описа

Alex Trofimov c1cf2d8bf9 Update target SDK version for Android пре 2 година
.bundle bb955890ce Update to latest packages пре 3 година
__tests__ bb955890ce Update to latest packages пре 3 година
android c1cf2d8bf9 Update target SDK version for Android пре 2 година
img 8e212a3f1a #47 App update to latest version of React Native and other libraries пре 4 година
ios c1cf2d8bf9 Update target SDK version for Android пре 2 година
src 8e212a3f1a #47 App update to latest version of React Native and other libraries пре 4 година
.eslintrc.js dec5ff82dc v.1.2.0 - upgrade to the latest ReactNative version пре 7 година
.gitignore bb955890ce Update to latest packages пре 3 година
.node-version bb955890ce Update to latest packages пре 3 година
.prettierrc.js bb955890ce Update to latest packages пре 3 година
.watchmanconfig 301d39a0a9 Initial commit пре 7 година
App.js e7e5e5bb7f Domain change пре 2 година
App.tsx bb955890ce Update to latest packages пре 3 година
ErrorPage.js 8e212a3f1a #47 App update to latest version of React Native and other libraries пре 4 година
Gemfile bb955890ce Update to latest packages пре 3 година
Gemfile.lock bb955890ce Update to latest packages пре 3 година
Icons.js 0901f7f76a #52 Artificer template support, statusbar color in Android, and other minor changes пре 4 година
README.md f0b097c8db Remove link which doesn't exist пре 4 година
Theme.js 7aa20a0ff6 #57 More params for search box need to added to theme пре 3 година
VideoCall.js 40a181c23d More deep Jitsi integration пре 6 година
app.json 8e212a3f1a #47 App update to latest version of React Native and other libraries пре 4 година
babel.config.js dec5ff82dc v.1.2.0 - upgrade to the latest ReactNative version пре 7 година
index.js dec5ff82dc v.1.2.0 - upgrade to the latest ReactNative version пре 7 година
metro.config.js 8e212a3f1a #47 App update to latest version of React Native and other libraries пре 4 година
package-lock.json bb955890ce Update to latest packages пре 3 година
package.json bb955890ce Update to latest packages пре 3 година
process-icon.sh dec5ff82dc v.1.2.0 - upgrade to the latest ReactNative version пре 7 година
process-splash.sh dec5ff82dc v.1.2.0 - upgrade to the latest ReactNative version пре 7 година
rebrand.sh d2544e00a5 Rebrand script update пре 2 година
tsconfig.json bb955890ce Update to latest packages пре 3 година
yarn.lock bb955890ce Update to latest packages пре 3 година

README.md

UNA Mobile Apps

This is source code of UNA mobile apps for iOS and Android based on ReactNative.
Mobile apps need to have Nexus UNA app installed.

Run

You need to have Node.js, Android SDK for Android Apps and XCode for iOS apps along withg CocoaPods installed to build apps.

After downloading source code, unpacking it, then run:

npm install 

Then you can already try to run Andoid app with the following commands (Android emulator must be already running):

export ANDROID_HOME=/path/to/android/sdk
npx react-native run-android

or iOS app (on Mac OSX only):

cd ios; pod install; cd ..
npx react-native run-ios

Changing display name and bundle identifier

There is rebrand.sh script to help with below changes, just change variables in the beginning of the file and run it, or proceed with the manual actions below:

Lest assume that you want to rename app to Kookaburra and site name is kookaburra.io.
Then you need to change the following strings:

UNA.IO => Kookaburra
com.una.android => com.kookaburra.android
com.una.ios => com.kookaburra.ios
una.io => kookaburra.io
una => kookaburra

In the following files and some files need to be renamed:

App.js
app.json
package.json

ios/Podfile
ios/una/AppDelegate.m

android/app/src/main/res/values/strings.xml
android/app/src/main/java/com/una/android/MainActivity.java => android/app/src/main/java/com/kookaburra/android/MainActivity.java
android/app/src/main/java/com/una/android/MainApplication.java => android/app/src/main/java/com/kookaburra/android/MainApplication.java
android/app/src/main/AndroidManifest.xml
android/app/BUCK
android/app/build.gradle

In XCode change the following (make sure to open una.xcworkspace):

Then rename the following file:

ios/kookaburra.xcodeproj/xcshareddata/xcschemes/una.xcscheme => ios/kookaburra.xcodeproj/xcshareddata/xcschemes/kookaburra.xcscheme

Change images to your own

Change all images to your own in /img/ folder, leaving the same images dimensions.

To change launcher and icons for iOS and Android apps it's recommended to use special script, it can be installed using the following command:

npm i -D @bam.tech/react-native-make

Then you can generate app icons and splash for Android using the following command:

npx react-native set-icon --platform android --path ./img/icon-android.png
npx react-native set-splash --platform android --path ./img/background.png --resize contain

Before generating splash and app icon of iOS app rename ios/una folder to ios/kookaburra:

npx react-native set-icon --platform ios --path ./img/icon.png
npx react-native set-splash --platform ios --path ./img/background.png --resize contain

After images are generated rename it back ios/kookaburra to ios/una. Then open kookaburra.xcworkspace in XCode and add SplashScreen.storyboard file to the project to use it as splash.