-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setup guide. Bundled dev main.js
- Loading branch information
1 parent
ad97183
commit b4fac4c
Showing
6 changed files
with
10,183 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Android Pre-release | ||
To be prepared for Android releases. | ||
|
||
App should not be used as of now. It uses the clearnet unsafe tor2web bridge. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,6 @@ buck-out/ | |
# Ruby / CocoaPods | ||
/ios/Pods/ | ||
/vendor/bundle/ | ||
|
||
# frontend js | ||
/html/Web.bundle/js* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Tested on Ubuntu 20.04 | ||
|
||
# Install JDK | ||
``` | ||
sudo apt update | ||
sudo apt install default-jdk | ||
java -version | ||
``` | ||
# Install Android Studio | ||
``` | ||
sudo add-apt-repository ppa:maarten-fonville/android-studio | ||
sudo apt update | ||
sudo apt install android-studio | ||
``` | ||
# Install watchman | ||
``` | ||
wget https://github.com/facebook/watchman/releases/download/v2022.06.20.00/watchman-v2022.06.20.00-linux.zip | ||
unzip watchman-v2022.06.20.00-linux.zip | ||
cd watchman-v2022.06.20.00-linux | ||
sudo mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman | ||
sudo cp bin/* /usr/local/bin | ||
sudo cp lib/* /usr/local/lib | ||
sudo chmod 755 /usr/local/bin/watchman | ||
sudo chmod 2777 /usr/local/var/run/watchman | ||
``` | ||
# (If in VMware linux environment) | ||
``` | ||
sudo apt install -y open-vm-tools-desktop | ||
sudo apt install -y qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils | ||
sudo usermod -aG kvm $(whoami) | ||
reboot | ||
``` | ||
# Create Emulator (or connect Android phone and install adb) | ||
Use the GUI of Android studio to create a new virtual devide. As of 23/06/2022 we are using a Pixel 5 as template and System image R API level 30 Android 11.0 | ||
|
||
If using a phone, start the USB debugging mode. | ||
|
||
Go to /robosats/mobile/android/local.properties and add `sdk.dir = /home/USERNAME/Android/Sdk` (create the file local.properties if it does not exist) | ||
|
||
# Launch app builder and | ||
Point a terminal to /robosats/mobile/ | ||
``` | ||
npm start | ||
``` | ||
on another temrinal also in /robosats/mobile/ | ||
``` | ||
npx react-native run-android | ||
``` |