From 9dad027b4127c2a4460bfdd66d743cf284d0f76e Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 28 Jun 2021 17:27:24 +0200 Subject: [PATCH] fix: Fix autolinking for android (#231) * Create `react-native.config.js` * Update react-native.config.js * Create dummy CameraPackage as proxy for CLI --- android-npm/src/AndroidManifest.xml | 3 +++ .../main/java/com/mrousavy/camera/CameraProxyPackage.java | 8 ++++++++ package.json | 2 ++ 3 files changed, 13 insertions(+) create mode 100644 android-npm/src/AndroidManifest.xml create mode 100644 android-npm/src/main/java/com/mrousavy/camera/CameraProxyPackage.java diff --git a/android-npm/src/AndroidManifest.xml b/android-npm/src/AndroidManifest.xml new file mode 100644 index 0000000..1931a04 --- /dev/null +++ b/android-npm/src/AndroidManifest.xml @@ -0,0 +1,3 @@ + + diff --git a/android-npm/src/main/java/com/mrousavy/camera/CameraProxyPackage.java b/android-npm/src/main/java/com/mrousavy/camera/CameraProxyPackage.java new file mode 100644 index 0000000..ff4468f --- /dev/null +++ b/android-npm/src/main/java/com/mrousavy/camera/CameraProxyPackage.java @@ -0,0 +1,8 @@ +package com.mrousavy.camera; + +import com.facebook.react.ReactPackage; +import com.mrousavy.camera.CameraPackage; + +public class CameraPackage implements ReactPackage { + // dummy package +} diff --git a/package.json b/package.json index a7f977f..e7ec536 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "lib/typescript", "android/build.gradle", "android/*.aar", + "android/src", "ios/**/*.h", "ios/**/*.m", "ios/**/*.mm", @@ -23,6 +24,7 @@ "cpp/**/*.h", "cpp/**/*.cpp", "VisionCamera.podspec", + "react-native.config.js", "README.md" ], "scripts": {