1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- group 'com.vinno.flutter_smartscan_plugin'
- version '1.0'
- buildscript {
- repositories {
- google()
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:7.2.0'
- }
- }
- rootProject.allprojects {
- repositories {
- google()
- mavenCentral()
- }
- }
- apply plugin: 'com.android.library'
- android {
- compileSdkVersion 31
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- sourceSets {
- main {
- jniLibs.srcDirs += 'src/main/jniLibs'
- }
- }
- defaultConfig {
- minSdkVersion 16
- }
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- ndk {
- //这里其实我觉可以直接是用"armeabi-v7a",但国内几个大哥之前使用的都是"armeabi"
- abiFilters "arm64-v8a"
- }
- }
- debug {
- signingConfig signingConfigs.debug
- ndk {
- //这里要加上,否则debug包会出问题,后面两个为可选,x86建议加上不然部分模拟器回报错
- abiFilters "x86_64","armeabi-v7a","arm64-v8a", "x86"
- }
- }
- }
- }
|