Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] React Native 0.64.1 Clean Install Example #36

Open
gabidi opened this issue Jul 17, 2021 · 1 comment
Open

[Android] React Native 0.64.1 Clean Install Example #36

gabidi opened this issue Jul 17, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@gabidi
Copy link
Contributor

gabidi commented Jul 17, 2021

Steps to initialize and install React Native Tor

  1. npx react-native init tortest2 --template react-native-template-typescript
  2. cat package.json | jq -r '.dependencies["react-native"] shows 0.64.1
  3. npm i https://github.com/Sifir-io/react-native-tor.git#feat/hs
  4. vim android/app/build.gradle :
    a. add implementation files("../../node_modules/react-native-tor/android/libs/sifir_android.aar") under dependencies around line 213
  5. vim android/build.gradle :
    a. change minSdkVersion to 26
  6. npm run android
    App should build and install !

System info:

  • At the time of writing this android/build.gradle had the following:
ext {
        buildToolsVersion = "29.0.3"
        minSdkVersion = 26
        compileSdkVersion = 29
        targetSdkVersion = 29
        ndkVersion = "20.1.5948944"
}

Operating System: Manjaro Linux
Kernel: Linux 5.10.49-1-MANJARO
Architecture: x86-64

openjdk version "1.8.0_292"
OpenJDK Runtime Environment (build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (build 25.292-b10, mixed mode)

@Overtorment
Copy link
Contributor

i wonder why it started working with minSdk 26. we could to make it work. we are even preparing a separate build for older devices with stripped tor functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants