Skip to content

Commit

Permalink
Allow http .onion conns, fix rn- screens crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
minibits-cash committed Oct 28, 2023
1 parent a142f0c commit 6610f94
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ android {
applicationId "com.minibits_wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 21
versionName "0.1.3-tor"
versionCode 22
versionName "0.1.3-tor.2"
ndk {
abiFilters 'arm64-v8a', 'x86_64', 'x86', 'armeabi-v7a'
} // react-native-tor build
Expand Down
1 change: 1 addition & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
android:icon="@mipmap/ic_launcher"
android:allowBackup="false"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
>
<activity
android:name=".MainActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.minibits_wallet;

import android.os.Bundle; // react-native-screens fix
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactActivityDelegate;
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
Expand Down Expand Up @@ -28,5 +29,11 @@ protected ReactActivityDelegate createReactActivityDelegate() {
getMainComponentName(),
// If you opted-in for the New Architecture, we enable the Fabric Renderer.
DefaultNewArchitectureEntryPoint.getFabricEnabled());
}.

// react-native-screens fix
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(null);
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minibits_wallet",
"version": "0.1.3-tor-beta.11",
"version": "0.1.3-tor.2-beta.11",
"private": true,
"scripts": {
"android:clean": "cd android && ./gradlew clean",
Expand Down

0 comments on commit 6610f94

Please sign in to comment.