mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-25 14:57:05 +00:00
System.loadLibrary voodoo magic
Former-commit-id: 97ff59f95bcdd80a57833263c5a8191223683be6
This commit is contained in:
parent
ce6ebde8b7
commit
4b43096ba8
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "StatusIm",
|
"name": "StatusIm",
|
||||||
"interface": "reagent",
|
"interface": "reagent",
|
||||||
"androidHost": "localhost",
|
"androidHost": "10.0.3.2",
|
||||||
"modules": [
|
"modules": [
|
||||||
"react-native-contacts",
|
"react-native-contacts",
|
||||||
"react-native-invertible-scroll-view",
|
"react-native-invertible-scroll-view",
|
||||||
|
@ -35,10 +35,6 @@ public class MainActivity extends ReactActivity {
|
|||||||
final Handler handler = new Handler();
|
final Handler handler = new Handler();
|
||||||
|
|
||||||
protected void startStatus() {
|
protected void startStatus() {
|
||||||
// Required for android-16 (???)
|
|
||||||
System.loadLibrary("gethraw");
|
|
||||||
System.loadLibrary("geth");
|
|
||||||
|
|
||||||
// Required because of crazy APN settings redirecting localhost (found in GB)
|
// Required because of crazy APN settings redirecting localhost (found in GB)
|
||||||
Properties properties = System.getProperties();
|
Properties properties = System.getProperties();
|
||||||
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1");
|
||||||
@ -70,6 +66,11 @@ public class MainActivity extends ReactActivity {
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
// Required for android-16 (???)
|
||||||
|
// Crash if put in startStatus() ?
|
||||||
|
System.loadLibrary("gethraw");
|
||||||
|
System.loadLibrary("geth");
|
||||||
|
|
||||||
if(!RootUtil.isDeviceRooted()) {
|
if(!RootUtil.isDeviceRooted()) {
|
||||||
startStatus();
|
startStatus();
|
||||||
} else {
|
} else {
|
||||||
|
2
env/dev/env/android/main.cljs
vendored
2
env/dev/env/android/main.cljs
vendored
@ -10,7 +10,7 @@
|
|||||||
(def root-el (r/as-element [reloader]))
|
(def root-el (r/as-element [reloader]))
|
||||||
|
|
||||||
(figwheel/watch-and-reload
|
(figwheel/watch-and-reload
|
||||||
:websocket-url "ws://localhost:3449/figwheel-ws"
|
:websocket-url "ws://10.0.3.2:3449/figwheel-ws"
|
||||||
:heads-up-display false
|
:heads-up-display false
|
||||||
:jsload-callback #(swap! cnt inc))
|
:jsload-callback #(swap! cnt inc))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user