From 124380e1fc5513e672e8ec806a1191dd087045c7 Mon Sep 17 00:00:00 2001 From: andre Date: Fri, 13 Feb 2026 14:27:34 +0100 Subject: [PATCH] improve plugin implementation: update method signatures, consolidate event emitter, and regenerate dependencies --- android/build.gradle | 2 +- .../webidmetaplugin/WebIdMetaPluginPackage.kt | 11 +- .../webidmetaplugin/example/MainActivity.kt | 3 +- example/package.json | 3 +- example/src/App.tsx | 20 +- package.json | 4 +- src/index.tsx | 4 +- yarn.lock | 21515 ++++++++++------ 8 files changed, 13596 insertions(+), 7966 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 2848888..54e7723 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -71,7 +71,7 @@ dependencies { implementation "com.google.code.gson:gson:2.10.1" implementation("com.facebook.react:react-android") - def product_catalog_version = "15.1.1" + def product_catalog_version = "15.3.0" implementation ("de.webid-solutions:android_meta_plugin:$product_catalog_version") { changing = true diff --git a/android/src/main/java/com/webidmetaplugin/WebIdMetaPluginPackage.kt b/android/src/main/java/com/webidmetaplugin/WebIdMetaPluginPackage.kt index 31f0241..8b9af11 100644 --- a/android/src/main/java/com/webidmetaplugin/WebIdMetaPluginPackage.kt +++ b/android/src/main/java/com/webidmetaplugin/WebIdMetaPluginPackage.kt @@ -7,9 +7,12 @@ import com.facebook.react.uimanager.ViewManager class WebIdMetaPluginPackage : ReactPackage { - override fun createNativeModules(reactContext: ReactApplicationContext) - = listOf(WebIdMetaPluginModule(reactContext)) + override fun createNativeModules(reactContext: ReactApplicationContext): List { + return listOf(WebIdMetaPluginModule(reactContext)) + } - override fun createViewManagers(reactContext: ReactApplicationContext) - = emptyList>() + override fun createViewManagers(reactContext: ReactApplicationContext): List> { + return emptyList() + } } + diff --git a/example/android/app/src/main/java/webidmetaplugin/example/MainActivity.kt b/example/android/app/src/main/java/webidmetaplugin/example/MainActivity.kt index 289682e..41e53ee 100644 --- a/example/android/app/src/main/java/webidmetaplugin/example/MainActivity.kt +++ b/example/android/app/src/main/java/webidmetaplugin/example/MainActivity.kt @@ -4,7 +4,6 @@ import com.facebook.react.ReactActivity import com.facebook.react.ReactActivityDelegate import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled import com.facebook.react.defaults.DefaultReactActivityDelegate -import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled class MainActivity : ReactActivity() { @@ -19,5 +18,5 @@ class MainActivity : ReactActivity() { * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] */ override fun createReactActivityDelegate(): ReactActivityDelegate = - DefaultReactActivityDelegate(this, mainComponentName, false) + DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) } diff --git a/example/package.json b/example/package.json index 54f4bac..069a7a4 100644 --- a/example/package.json +++ b/example/package.json @@ -11,9 +11,8 @@ }, "dependencies": { "react": "19.2.3", - "react-dom": "19.2.3", "react-native": "0.84.0", - "react-native-web-id-meta-plugin": "file:.." + "react-native-bouncy-checkbox": "^4.1.4" }, "devDependencies": { "@babel/core": "^7.20.0", diff --git a/example/src/App.tsx b/example/src/App.tsx index d296e2e..e2e66cf 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -57,12 +57,18 @@ export default function App() { }); const styles = StyleSheet.create({ + container: { + paddingHorizontal: 16, + paddingBottom: 16, + paddingTop: 64, + }, input: { height: 40, margin: 12, borderWidth: 1, padding: 10, }, + btn: { marginVertical: 8 }, }); const showAlert = (title: string, message: string) => { @@ -122,7 +128,7 @@ export default function App() { }; return ( - + @@ -164,15 +170,21 @@ export default function App() { -