Installation
info
See the GitHub repository.
- React Native
- iOS
- Android
Add the One Core to your dependencies:
yarn add @procivis/react-native-one-core
or
npm install @procivis/react-native-one-core
Add the provided xcframework files to your app as framework dependencies.
In your swift code, import the framework.
import ProcivisOneCore
In your app
build.gradle
, add the onecore dependency:
dependencies {
...
releaseImplementation(name: 'onecore-release', ext: 'aar')
debugImplementation(name: 'onecore-debug', ext: 'aar')
api 'net.java.dev.jna:jna:5.13.0@aar'
}
In the project
build gradle
, add the path to the aar files:
allprojects {
repositories {
...
flatDir { dirs "{path to directory with aar files}" }
}
}
Add the following to your app
proguard-rules.pro
:
-keep class java.security.*
-keep class uniffi.one_core.** { *; }
# java-native-access
-dontwarn java.awt.*
-keep class com.sun.jna.* { *; }
-keep class * extends com.sun.jna.* { public *; }