You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
4.0 KiB
120 lines
4.0 KiB
|
2 years ago
|
//plugins {
|
||
|
|
// id 'com.android.library'
|
||
|
|
//}
|
||
|
|
|
||
|
|
//android {
|
||
|
|
// namespace 'com.jiyi.jy_mlscansdk'
|
||
|
|
// compileSdk 32 //29
|
||
|
|
//
|
||
|
|
// defaultConfig {
|
||
|
|
// minSdkVersion 21
|
||
|
|
// targetSdkVersion 32
|
||
|
|
// versionCode 1
|
||
|
|
// versionName "1.0"
|
||
|
|
//
|
||
|
|
//// minSdk 21
|
||
|
|
//// targetSdk 32
|
||
|
|
//
|
||
|
|
// testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||
|
|
// consumerProguardFiles "consumer-rules.pro"
|
||
|
|
// }
|
||
|
|
//
|
||
|
|
// buildTypes {
|
||
|
|
// release {
|
||
|
|
// minifyEnabled false
|
||
|
|
// proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
// }
|
||
|
|
// }
|
||
|
|
// compileOptions {
|
||
|
|
// sourceCompatibility JavaVersion.VERSION_1_8
|
||
|
|
// targetCompatibility JavaVersion.VERSION_1_8
|
||
|
|
// }
|
||
|
|
// buildToolsVersion '30.0.3'
|
||
|
|
//}
|
||
|
|
//
|
||
|
|
//dependencies {
|
||
|
|
//
|
||
|
|
//// implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||
|
|
//// implementation fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
|
||
|
|
////
|
||
|
|
//// implementation "com.android.support:recyclerview-v7:28.0.0"
|
||
|
|
//// implementation "com.android.support:support-v4:28.0.0"
|
||
|
|
//// implementation "com.android.support:appcompat-v7:28.0.0"
|
||
|
|
//// implementation 'com.alibaba:fastjson:1.1.46.android'
|
||
|
|
//// implementation 'com.facebook.fresco:fresco:1.13.0'
|
||
|
|
////
|
||
|
|
//// implementation 'com.google.mlkit:barcode-scanning:16.2.0'
|
||
|
|
//// def camerax_version = '1.0.1';
|
||
|
|
//// implementation "androidx.camera:camera-core:${camerax_version}"
|
||
|
|
//// implementation "androidx.camera:camera-camera2:${camerax_version}"
|
||
|
|
//// implementation "androidx.camera:camera-lifecycle:${camerax_version}"
|
||
|
|
//// implementation "androidx.camera:camera-view:1.0.0-alpha25"
|
||
|
|
//
|
||
|
|
// compileOnly fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||
|
|
// compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar','mlkit-scanner-release.aar'])
|
||
|
|
//
|
||
|
|
// compileOnly "com.android.support:recyclerview-v7:28.0.0"
|
||
|
|
// compileOnly "com.android.support:support-v4:28.0.0"
|
||
|
|
// compileOnly "com.android.support:appcompat-v7:28.0.0"
|
||
|
|
// compileOnly 'com.alibaba:fastjson:1.1.46.android'
|
||
|
|
// compileOnly 'com.facebook.fresco:fresco:1.13.0'
|
||
|
|
//
|
||
|
|
// compileOnly 'com.google.mlkit:barcode-scanning:16.2.0'
|
||
|
|
// def camerax_version = '1.0.1';
|
||
|
|
// compileOnly "androidx.camera:camera-core:${camerax_version}"
|
||
|
|
// compileOnly "androidx.camera:camera-camera2:${camerax_version}"
|
||
|
|
// compileOnly "androidx.camera:camera-lifecycle:${camerax_version}"
|
||
|
|
// compileOnly "androidx.camera:camera-view:1.0.0-alpha25"
|
||
|
|
//
|
||
|
|
//
|
||
|
|
//}
|
||
|
|
apply plugin: 'com.android.library'
|
||
|
|
|
||
|
|
android {
|
||
|
|
compileSdkVersion 32
|
||
|
|
defaultConfig {
|
||
|
|
//applicationId 'com.jiyi.jy_mlscansdk'
|
||
|
|
minSdkVersion 21
|
||
|
|
targetSdkVersion 32
|
||
|
|
versionCode 1
|
||
|
|
versionName "1.0"
|
||
|
|
|
||
|
|
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
buildTypes {
|
||
|
|
release {
|
||
|
|
minifyEnabled false
|
||
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
repositories {
|
||
|
|
flatDir {
|
||
|
|
dirs 'libs'
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
dependencies {
|
||
|
|
compileOnly fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||
|
|
compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar','mlkit-scanner-release.aar'])
|
||
|
|
|
||
|
|
//noinspection GradleCompatible
|
||
|
|
compileOnly 'com.android.support:recyclerview-v7:28.0.0'
|
||
|
|
//noinspection GradleCompatible
|
||
|
|
compileOnly 'com.android.support:support-v4:28.0.0'
|
||
|
|
//noinspection GradleCompatible
|
||
|
|
compileOnly 'com.android.support:appcompat-v7:28.0.0'
|
||
|
|
compileOnly 'com.alibaba:fastjson:1.1.46.android'
|
||
|
|
compileOnly 'com.facebook.fresco:fresco:1.13.0'
|
||
|
|
|
||
|
|
compileOnly 'com.google.mlkit:barcode-scanning:16.2.0'
|
||
|
|
def camerax_version = '1.0.1';
|
||
|
|
compileOnly "androidx.camera:camera-core:${camerax_version}"
|
||
|
|
compileOnly "androidx.camera:camera-camera2:${camerax_version}"
|
||
|
|
compileOnly "androidx.camera:camera-lifecycle:${camerax_version}"
|
||
|
|
compileOnly "androidx.camera:camera-view:1.0.0-alpha25"
|
||
|
|
}
|