Capacitor Installation

The IDWise Capacitor SDK is available on npm. You can add the package to your project using Capacitor's dependency manager. Follow the steps below to ensure proper installation of the Capacitor SDK in your project.

Requirements

  • Minimum version for Capacitor: TBA
  • Android:
    • minSdkVersion is 21 and targetSdkVersion is set to 31
  • iOS
    • Minimum deployment target: iOS 12.0 or higher.

Latest Stable Version

NPM Version

Please see the Release Notes for more details

Android Setup

  1. Add the following to your app-level build.gradle file located at projectRoot/android/app/build.gradle
android {
  ...
  defaultConfig {
    ...
    multiDexEnabled true
  }
  buildFeatures {
    ...
    dataBinding true
  }
}
  1. Double check that mavenCentral() is added in your repositories, which is added by default if you create the new React-native Project.
repositories {
  ...
  mavenCentral()
}

📘

support Right-to-Left (Android)

Add the following android:supportsRtl="true" attribute in the application tag in your project’s AndroidManifest.xml file located at /app/src/main/AndroidManifest.xml for the right-to-left language such as Arabic, Urdu and etc.

iOS Setup

  1. Add the following line in your Podfile
source 'https://github.com/idwise/ios-sdk'
  1. Add this configuration under target node for your project:
  post_install do |installer|
    installer.pods_project.build_configurations.each do |config|
      config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end
  1. Add the IDWiseSDK Plugin to your Cordova project by running the following command in the root project
npm install idwise-cordova-sdk