diff --git a/Readme.md b/Readme.md index 5276002..1c8f59c 100644 --- a/Readme.md +++ b/Readme.md @@ -50,7 +50,7 @@ You can download and install the app from the Google Play Store: ### Requirements We need the following software: * Java 1.11. Usually comes with Android Studio -* android studio initialized with jdk and emulator (not covered here, is a req from android-client and react-native-app projects) +* android studio initialized with jdk and emulator (not covered here, is a req from android-client project) * gradle (https://gradle.org/install/) * npm 1.18, yarn and nvm: ```shell @@ -72,7 +72,7 @@ cd projects # clone netbird repo git clone git@github.com:netbirdio/netbird.git # clone react native app repo -git clone git@github.com:netbirdio/react-native-app.git +git clone git@github.com:netbirdio/android-client.git ``` 2. Checkout the repositories to the branches you want to test. If you want the latest, check the status information on your IDE or on https://github.com and verify the branch list and commit history. 3. export JDK and Android home vars, on macOS they are: (please contribute with Linux equivalent) @@ -83,12 +83,12 @@ export JAVA_HOME=/Applications/Android Studio.app/Contents/jbr/Contents/Home ``` 4. Install NDK and CMake ```shell -cd ~/projects/react-native-app +cd ~/projects/android-client $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;23.1.7779620" ``` 5. Build the gomobile lib and the Android client lib: ````shell -cd ~/projects/react-native-app +cd ~/projects/android-client bash -x build-android-lib.sh ~/projects/netbird ```` 6. Install the react native app dependencies @@ -106,11 +106,11 @@ yarn start Follow the steps to run locally until the step 5 then run the following steps: 1. run npx from react native app repo ```shell -cd ~/projects/react-native-app +cd ~/projects/android-client npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res ``` 2. run gradlew ```shell -cd ~/projects/react-native-app/android +cd ~/projects/android-client/android ./gradlew bundleDebug ```