File tree Expand file tree Collapse file tree 6 files changed +12
-13
lines changed
debug/java/com/helloworld Expand file tree Collapse file tree 6 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -380,12 +380,6 @@ dependencies {
380
380
androidTestImplementation(" androidx.test:runner:1.1.0" )
381
381
androidTestImplementation(" androidx.test:rules:1.1.0" )
382
382
androidTestImplementation(" org.mockito:mockito-core:${ MOCKITO_CORE_VERSION} " )
383
-
384
- debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
385
- exclude group :' com.facebook.yoga'
386
- exclude group :' com.facebook.flipper' , module : ' fbjni'
387
- exclude group :' com.facebook.litho' , module : ' litho-annotations'
388
- }
389
383
}
390
384
391
385
apply(from : " release.gradle" )
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ BOOST_VERSION=1_63_0
20
20
DOUBLE_CONVERSION_VERSION =1.1.6
21
21
FOLLY_VERSION =2018.10.22.00
22
22
GLOG_VERSION =0.3.5
23
- FLIPPER_VERSION =0.23.4
24
23
25
24
android.useAndroidX =true
26
25
android.enableJetifier =true
Original file line number Diff line number Diff line change @@ -191,6 +191,12 @@ dependencies {
191
191
implementation fileTree(dir : " libs" , include : [" *.jar" ])
192
192
implementation " com.facebook.react:react-native:+" // From node_modules
193
193
194
+ debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
195
+ exclude group :' com.facebook.yoga'
196
+ exclude group :' com.facebook.flipper' , module : ' fbjni'
197
+ exclude group :' com.facebook.litho' , module : ' litho-annotations'
198
+ }
199
+
194
200
if (enableHermes) {
195
201
def hermesPath = " ../../node_modules/hermes-engine/android/" ;
196
202
debugImplementation files(hermesPath + " hermes-debug.aar" )
Original file line number Diff line number Diff line change 4
4
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
5
* directory of this source tree.
6
6
*/
7
- package com .facebook . flipper ;
7
+ package com .helloworld ;
8
8
9
9
import android .content .Context ;
10
10
import com .facebook .flipper .android .AndroidFlipperClient ;
18
18
import com .facebook .flipper .plugins .network .NetworkFlipperPlugin ;
19
19
import com .facebook .flipper .plugins .react .ReactFlipperPlugin ;
20
20
import com .facebook .flipper .plugins .sharedpreferences .SharedPreferencesFlipperPlugin ;
21
- import com .facebook .react .BuildConfig ;
22
21
import com .facebook .react .modules .network .NetworkingModule ;
23
22
import okhttp3 .OkHttpClient ;
24
23
25
24
public class ReactNativeFlipper {
26
- public static final String CLASS_NAME = "com.facebook.flipper.ReactNativeFlipper" ;
27
-
28
25
public static void initializeFlipper (Context context ) {
29
- if (BuildConfig . DEBUG && FlipperUtils .shouldEnableFlipper (context )) {
26
+ if (FlipperUtils .shouldEnableFlipper (context )) {
30
27
final FlipperClient client = AndroidFlipperClient .getInstance (context );
31
28
32
29
client .addPlugin (new InspectorFlipperPlugin (context , DescriptorMapping .withDefaults ()));
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ private static void initializeFlipper(Context context) {
57
57
We use reflection here to pick up the class that initializes Flipper,
58
58
since Flipper library is not available in release mode
59
59
*/
60
- Class <?> aClass = Class .forName ("com.facebook.flipper .ReactNativeFlipper" );
60
+ Class <?> aClass = Class .forName ("com.helloworld .ReactNativeFlipper" );
61
61
aClass .getMethod ("initializeFlipper" , Context .class ).invoke (null , context );
62
62
} catch (ClassNotFoundException e ) {
63
63
e .printStackTrace ();
Original file line number Diff line number Diff line change 23
23
android.useAndroidX =true
24
24
# Automatically convert third-party libraries to use AndroidX
25
25
android.enableJetifier =true
26
+
27
+ # Version of flipper SDK to use with React Native
28
+ FLIPPER_VERSION =0.23.4
You can’t perform that action at this time.
0 commit comments