From cb717aba0c674eb8a754a58ae0251c5b1be65a81 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Wed, 8 Feb 2023 16:55:04 +0200 Subject: [PATCH] Android fix (#7099) * Fix android notifications permission * fix unsigned android build --- android/app/src/main/AndroidManifest.xml | 1 + .../flipper/ReactNativeFlipper.java | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 android/app/src/unsigned/java/com/mattermost/flipper/ReactNativeFlipper.java diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 1dd89c48e4..e887967e08 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ + This source code is licensed under the MIT license found in the LICENSE file in the root + * directory of this source tree. + */ +package com.mattermost.flipper; + +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. + } +}