Skip to content

Commit

Permalink
Remove react native related source code (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
anjmao authored Dec 4, 2019
1 parent 09ff1ca commit f03afda
Show file tree
Hide file tree
Showing 150 changed files with 3 additions and 18,777 deletions.
95 changes: 3 additions & 92 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ Application for VPN using Mysterium Network.

## Running manually

* [Install and run Tequilapi](https://github.com/MysteriumNetwork/node) on your PC
* Install dependencies

```bash
yarn install
```

* Install React Native CLI:

```bash
yarn global add react-native-cli
npm install -g react-native-cli
```

### Android
* Setup crash reporting:
* Ensure You have permission to the project here https://console.firebase.google.com
Expand Down Expand Up @@ -47,7 +33,7 @@ export ANDROID_HOME=/Users/<username>/Library/Android/sdk/

Run app on default device (connected or emulator)
```bash
yarn android
Open Android Studio and click Run button :)
```

#### Android Releases
Expand Down Expand Up @@ -87,7 +73,6 @@ vim fastlane/.env.local
```



##### Building release APK

- Install Fastlane (if don't have it yet)
Expand Down Expand Up @@ -115,81 +100,7 @@ source fastlane/.env.local && fastlane android beta
### iOS
* Setup crash reporting:
* Download firebase crashlytics config - `GoogleService-Info.plist` from https://console.firebase.google.com
* Place it in `ios/`
* Install X Code using App Store
* Set location for command line tools is X Code:
* Open X Code
* Go to "X Code" -> "Preferences" -> "Locations"
* In "Command Line Tools", select single available option
* Install Cocoa dependency manager
```bash
brew bundle
```
```bash
cd ios
```
* Install Cocoa dependencies
```bash
carthage bootstrap --plaftorm iOS --cache-builds
```
```bash
cd ..
```
* Run iOS
```bash
yarn ios
```
* E2E tests
Make sure these are installed:
```bash
brew tap wix/brew
brew install wix/brew/applesimutils
```
Run E2E tests:
```bash
yarn test:e2e:ios
```
# Troubleshooting
### iOS build & run error
```bash
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/MysteriumVPN.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
```
`Entry, ":CFBundleIdentifier", Does Not Exist` error is very generic, but doing the following steps fixed the issue.
#### Xcode configuration
* Open project
* File -> Project settings -> Advanced
* Select "custom"
* Set the following:
Products: build/Build/Products
Intermediates: build/Build/Intermediates.noindex
Index Datastore: Index/DataStore
* Product -> Build
iOS App is under development.
### Android build error
```bash
Expand Down Expand Up @@ -218,7 +129,7 @@ brew install gnu-sed
#### Bump mobile-node version
- To Update `implementation "mysterium.network:mobile-node:0.5-rc"` line in `./android/app/build.gradle`, published versions can be found [here](https://bintray.com/mysterium/Node/mobile-node).
- Node usage can be found in `MainActivity.java`.
- Node usage can be found in `MainActivity.kt`.
#### Native android logs
Expand Down
11 changes: 0 additions & 11 deletions babel.config.js

This file was deleted.

25 changes: 0 additions & 25 deletions index.js

This file was deleted.

29 changes: 0 additions & 29 deletions jest.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions jest.setup.js

This file was deleted.

16 changes: 0 additions & 16 deletions metro.config.js

This file was deleted.

68 changes: 0 additions & 68 deletions package.json

This file was deleted.

45 changes: 0 additions & 45 deletions src/app/adapters/connection/connection-adapter.ts

This file was deleted.

Loading

0 comments on commit f03afda

Please sign in to comment.