Browse Source

removed logs

Daniel Zlotin 7 years ago
parent
commit
3ac0c008c9

+ 0
- 1
android/app/src/main/java/com/reactnativenavigation/NavigationActivity.java View File

91
             host.getReactInstanceManager().onHostDestroy(this);
91
             host.getReactInstanceManager().onHostDestroy(this);
92
         }
92
         }
93
         host.clear();
93
         host.clear();
94
-        android.util.Log.d("DebuggingIsHell", "NavigationActivity:onDestroy() ");
95
     }
94
     }
96
 
95
 
97
     @Override
96
     @Override

+ 0
- 1
android/app/src/main/java/com/reactnativenavigation/react/NavigationModule.java View File

48
                                     @Override
48
                                     @Override
49
                                     public View create(String id, String name) {
49
                                     public View create(String id, String name) {
50
                                         ReactRootView rootView = new ReactRootView(getActivity());
50
                                         ReactRootView rootView = new ReactRootView(getActivity());
51
-                                        rootView.setId(1234567);
52
                                         Bundle opts = new Bundle();
51
                                         Bundle opts = new Bundle();
53
                                         opts.putString("id", id);
52
                                         opts.putString("id", id);
54
                                         rootView.startReactApplication(getActivity().getHost().getReactInstanceManager(), name, opts);
53
                                         rootView.startReactApplication(getActivity().getHost().getReactInstanceManager(), name, opts);

+ 2
- 6
playground/android/app/src/androidTest/java/com/reactnativenavigation/playground/ReactIdlingResource.java View File

12
 class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebugListener {
12
 class ReactIdlingResource implements IdlingResource, NotThreadSafeBridgeIdleDebugListener {
13
     private final NavigationActivity activity;
13
     private final NavigationActivity activity;
14
     private ResourceCallback callback;
14
     private ResourceCallback callback;
15
+    private AtomicBoolean registered = new AtomicBoolean(false);
16
+    private AtomicBoolean bridgeIdle = new AtomicBoolean(false);
15
 
17
 
16
     ReactIdlingResource(NavigationActivity activity) {
18
     ReactIdlingResource(NavigationActivity activity) {
17
-        android.util.Log.d("DebuggingIsHell", "------------------------------");
18
         this.activity = activity;
19
         this.activity = activity;
19
         NavigationApplication.instance.runOnUiThreadDelayed(new Runnable() {
20
         NavigationApplication.instance.runOnUiThreadDelayed(new Runnable() {
20
             @Override
21
             @Override
26
         }, 10);
27
         }, 10);
27
     }
28
     }
28
 
29
 
29
-    private AtomicBoolean registered = new AtomicBoolean(false);
30
-    private AtomicBoolean bridgeIdle = new AtomicBoolean(false);
31
 
30
 
32
     @Override
31
     @Override
33
     public String getName() {
32
     public String getName() {
49
         }
48
         }
50
 
49
 
51
         boolean idle = bridgeIdle.get();
50
         boolean idle = bridgeIdle.get();
52
-        android.util.Log.d("DebuggingIsHell", "idle " + idle);
53
         if (idle) {
51
         if (idle) {
54
             callback.onTransitionToIdle();
52
             callback.onTransitionToIdle();
55
         }
53
         }
63
 
61
 
64
     @Override
62
     @Override
65
     public void onTransitionToBridgeIdle() {
63
     public void onTransitionToBridgeIdle() {
66
-        android.util.Log.d("DebuggingIsHell", "IDLE");
67
         bridgeIdle.set(true);
64
         bridgeIdle.set(true);
68
     }
65
     }
69
 
66
 
70
     @Override
67
     @Override
71
     public void onTransitionToBridgeBusy() {
68
     public void onTransitionToBridgeBusy() {
72
-        android.util.Log.d("DebuggingIsHell", "busy");
73
         bridgeIdle.set(false);
69
         bridgeIdle.set(false);
74
     }
70
     }
75
 }
71
 }

+ 1
- 2
playground/android/app/src/main/AndroidManifest.xml View File

8
         android:allowBackup="false"
8
         android:allowBackup="false"
9
         android:icon="@mipmap/ic_launcher"
9
         android:icon="@mipmap/ic_launcher"
10
         android:label="@string/app_name"
10
         android:label="@string/app_name"
11
-        android:theme="@style/AppTheme"
12
-        >
11
+        android:theme="@style/AppTheme">
13
         <activity
12
         <activity
14
             android:name=".MainActivity"
13
             android:name=".MainActivity"
15
             android:label="@string/app_name">
14
             android:label="@string/app_name">