onyx_plugin 0.0.2-dev.1
onyx_plugin: ^0.0.2-dev.1 copied to clipboard
A new flutter plugin project.
DFT-onyx-flutter-package #
This is not free software. This plugin uses the Onyx software development kits (SDKs) for Android and iOS. It requires a license agreement with:
Diamond Fortress Technologies, Inc.
Plugin Requirements #
Sample Project #
To run the sample project, run the Example/lib/main.dart.
The sample app load to a screen that shows all of the onyx camera settings, and provides the ability to start the onyx camera with any of the settings on the initial screen.
Android Plugin #
Minimum android version supported is 21.
Add the Onyx native package's repository and dependency references below to your app's android/app/build.gradle file.
android {
...
lintOptions {
disable 'InvalidPackage'
}
...
}
repositories {
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases/'
}
maven {
url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots/'
}
}
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.gms:play-services-base:17.6.0'
implementation 'com.dft.android:onyx-camera:7.0.0'
}
The plugin also needs permission to write to external storage, so in the app's AndroidManifest.xml, make sure to add the line below.
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />