jiguang_auth 3.0.3
jiguang_auth: ^3.0.3 copied to clipboard
JiGuang Security Authentication Flutter plugin (for Android & iOS), supporting one-click login and verification code login.
极光安全认证 #
安装 #
在工程 pubspec.yaml 中加入 dependencies
- github 集成
dependencies:
jverify:
git:
url: https://github.com/TeHeal/jiguang_auth.git
ref: main
- pub 集成
dependencies:
jiguang_auth: ^3.0.3
配置 #
Android:
在 /android/app/build.gradle 中添加下列代码:
android: {
...
defaultConfig {
...
//选择要添加的对应 cpu 类型的 .so 库。
ndk {
abiFilters 'armeabi-v7a', 'x86', 'x86_64','arm64-v8a'
}
// 设置 manifest.xml 中的占位符变量
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : "1b5965ba23557bcf384e0b08", // 更换为极光平台上,注册的包名所对应的 AppKey.
JPUSH_CHANNEL: "default_developer", // 默认值即可.
]
...
}
...
}
使用 #
import 'package:jiguang_auth/jiguang_auth.dart';