Socket
Book a DemoInstallSign in
Socket

@morrowdigital/watermelondb-expo-plugin

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morrowdigital/watermelondb-expo-plugin

Config plugin to auto configure `@nozbe/watermelondb`

2.3.3
latest
Source
npmnpm
Version published
Weekly downloads
1.7K
-17.29%
Maintainers
3
Weekly downloads
 
Created
Source

watermelon-db-plugin 🍉

Config plugin to auto configure @nozbe/watermelondb

Install

Tested against Expo SDK 49 and 50

yarn add @morrowdigital/watermelondb-expo-plugin

Please make sure you also install expo-build-properties

After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js. Then rebuild your app using a custom development client, as described in the "Adding custom native code" guide.

You also need to add the packaging options pick-first for android.

Example

In your app.json plugins array:

{
  "plugins": [
      [
        "@morrowdigital/watermelondb-expo-plugin"
      ],
      [
        "expo-build-properties",
        {
          "android": {
            "kotlinVersion": "1.6.10",
            "packagingOptions": {
              "pickFirst": [
                "**/libc++_shared.so"
              ]
            }
          }
        }
      ]
  ]
}

JSI support for Android

This plugin installs automatically JSI support for Android builds, as per WatermelonDB for Android instructions. If you wish to disable JSI support during build you may add the option in config plugin:

  [
    "@morrowdigital/watermelondb-expo-plugin",
    { "disableJsi": true }
  ]

Build errors with M1 architectures for simulators

There have been errors building with M1 architectures for simulators on iOS, with Error:

No such module 'ExpoModulesCore' 

See these discussions:

This plugin will NOT add the arm64 in Exlcuded_Archs, in SDK 50 builds:

'"EXCLUDED_ARCHS[sdk=iphonesimulator*]"'] = '"arm64"'

If you wish to add the above in configuration, you can add it with option:

  [
    "@morrowdigital/watermelondb-expo-plugin",
    { "excludeSimArch": true }
  ]

Keywords

watermelondb

FAQs

Package last updated on 26 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.