Flutter

circle-info

アカウント作成がまだの方は、最初に下記を参考の上、作成をお願いします。

https://docs.nativebrik.com/start/quickstart/accountarrow-up-right

サポート環境

Android

  • Android API level: 26 以上

  • Kotlin: 1.9.10 以上

iOS

  • iOS 15.0 以上

  • Xcode 15.0 以上

  • Swift 5.9 以上


Step 1. パッケージをインストールする

https://pub.dev/packages/nativebrik_bridgearrow-up-right にパッケージが公開されています。

以下のコマンドを実行してパッケージをインストールしてください。

Terminal
flutter pub add nativebrik_bridge

または、直接pubspec.yamlを編集し、pub getを実行することでもインストールできます。


Step 2. Nativebrik SDKを初期化する

Step 3.a (Android only) Set up Platform Specific Code

To get it working on Android, you need to make a small change to your MainActivity.kt file.

and, set the minimum android sdk version to 26 in your android/app/build.gradle file.

finally, set the kotlin version to >= 1.9.10 in your settings.gradle file.

Step 3.b. (iOS only) Set up Platform Specific Code

To get it working on iOS, you need to change a minimum deployments to 15.0 in your ios/Runner.xcodeproj/project.pbxproj file.

  1. In Xcode, navigate to Runner.xcodeproj > TARGETS > Runner > General > Minimum Deployments

  2. Change the minimum deployments to 15.0

Once you're finished, you can start using Nativebrik.

Last updated