From a9931697cdcf2102ec8080c79ccc1f30ee267f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Tue, 18 Apr 2023 13:41:31 +0200 Subject: [PATCH 1/2] fix not building for android anymore --- .../expensify/chat/ReactNativeFlipper.java | 20 +++++++++++++++++++ fastlane/Fastfile | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java diff --git a/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java b/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java new file mode 100644 index 000000000000..0e3c02f072e6 --- /dev/null +++ b/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java @@ -0,0 +1,20 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + *

This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. + */ +package com.expensify.chat; + +import android.content.Context; +import com.facebook.react.ReactInstanceManager; + +/** + * Class responsible of loading Flipper inside your React Native application. This is the release + * flavor of it so it's empty as we don't want to load Flipper. + */ +public class ReactNativeFlipper { + public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { + // Do nothing as we don't want to initialize Flipper on Release. + } +} \ No newline at end of file diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 70f3cf223647..577784d3810a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -17,7 +17,7 @@ platform :android do desc "Generate a new local APK for e2e testing" lane :build_e2e do ENV["ENVFILE"]="tests/e2e/.env.e2e" - ENV["ENTRY_FILE"]="src/libs/E2E/reactNativeLaunchingTest.js" + ENV["ENTRY_FILE"]="#{Dir.pwd}/../src/libs/E2E/reactNativeLaunchingTest.js" ENV["E2E_TESTING"]="true" gradle( From a57d37f35674192f989c5ed3c0cc252e8064dd70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Tue, 18 Apr 2023 14:36:55 +0200 Subject: [PATCH 2/2] fix styles --- .../e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java b/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java index 0e3c02f072e6..d7730e2d4fae 100644 --- a/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java +++ b/android/app/src/e2eRelease/java/com/expensify/chat/ReactNativeFlipper.java @@ -17,4 +17,4 @@ public class ReactNativeFlipper { public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { // Do nothing as we don't want to initialize Flipper on Release. } -} \ No newline at end of file +}