Skip to content

Commit

Permalink
Merge "List of included changes: - internal - Update langid app's tar…
Browse files Browse the repository at this point in the history
…getSdkVersion to 31 - Update langid app's compileSdkVersion to 31 - Add proguard build type for Entity Extraction and language ID sample apps"
  • Loading branch information
Yun Liu authored and Gerrit Code Review committed Nov 15, 2021
2 parents 8f3610b + 9a03866 commit 4c05644
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions android/langid/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,24 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
compileSdkVersion 31
defaultConfig {
applicationId "com.google.mlkit.samples.nl.languageid"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 19
targetSdkVersion 31
versionCode 1
versionName "1.0"
setProperty("archivesBaseName", "nl-langid")
}
buildTypes {
proguard {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro', 'proguard.cfg'
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro', 'proguard.cfg'
}
testBuildType "proguard"
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Expand All @@ -29,7 +37,7 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.material:material:1.2.1'

implementation 'com.google.mlkit:language-id:17.0.1'
implementation 'com.google.mlkit:language-id:17.0.2'
// Or comment the dependency above and uncomment the dependency below to
// use unbundled model that depends on Google Play Services
// implementation 'com.google.android.gms:play-services-mlkit-language-id:16.0.0-beta2'
Expand Down

0 comments on commit 4c05644

Please sign in to comment.