Building Production Apps | React Native Barcode Scanner
iOS
The Scanbot Barcode Scanner SDK iOS Framework (included in React Native Barcode Scanner Plugin) is provided as Pod via https://cocoapods.org.
Because React Native apps are normal native apps at the end of the day, the way they are deployed to the App Store is just like any other native app.
Please, consult the official Apple documentation on Submitting Apps to the App Store for more information.
Android
Scanbot Barcode Scanner SDK uses native libraries under the hood and supports the following
ABIs: armeabi-v7a
, arm64-v8a
, x86
and x86_64
.
To exclude certain ABIs, use the abiFilters
property in the Android Gradle settings of your project.
Please check and adjust the abiFilters
configuration in your build.gradle
file accordingly:
android {
...
defaultConfig {
...
ndk {
// a typical production configuration:
abiFilters "armeabi-v7a", "arm64-v8a"
}
}
}
💡 However, if you need to support all architectures and to optimize the APK size, we highly recommend checking out the Android App Bundle approach. It allows you to create and distribute dedicated and smaller APKs via the PlayStore (basically it is similar to the iOS App Store approach).
Proguard
Starting from v4.2.0, consumer ProGuard rules are integrated into the Scanbot Barcode SDK React Native Plugin and automatically applied to customers' modules.
If you use an older version and have ProGuard/R8 enabled for the release/production build, please add the following rules:
-keeppackagenames io.scanbot.barcodesdk.plugin.reactnative.**
-keep public class io.scanbot.barcodesdk.plugin.reactnative.** { *; }
-keep public class io.scanbot.sdk.ui.** { *; }
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get your free Trial LicenseWhat do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.