Skip to content

Commit

Permalink
List of included changes:
Browse files Browse the repository at this point in the history
  - Internal change
  - Update sample app's targetSdkVersion to 31
  - na
  - Update Android sample apps' compileSdkVersion to 31
  - Add proguard build type for Entity Extraction and language ID sample apps
  - Update minSdkVersion from 16 to 19

PiperOrigin-RevId: 408440136
Change-Id: I15a36a7aa4deaa9805596e019e541f4fa28a9bb9
  • Loading branch information
Google ML Kit authored and jackqdyulei committed Nov 15, 2021
1 parent 23917b3 commit 2d4e747
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
16 changes: 12 additions & 4 deletions android/entityextraction/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.entityextraction"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 19
targetSdkVersion 31
versionCode 1
versionName "1.0"
}

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 @@ -28,7 +36,7 @@ dependencies {
implementation project(':internal:chooserx')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.mlkit:entity-extraction:16.0.0-beta2'
implementation 'com.google.mlkit:entity-extraction:16.0.0-beta3'

// Optional dependency used for the Snackbar
implementation 'com.google.android.material:material:1.2.0'
Expand Down
2 changes: 1 addition & 1 deletion android/entityextraction/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.4.21'
ext.kotlin_version = '1.5.0'

repositories {
google()
Expand Down
6 changes: 6 additions & 0 deletions android/entityextraction/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
android.useAndroidX=true
android.enableJetifier=true

# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# Uses one worker to build. This helps resolve build OOM issue.
org.gradle.workers.max=1

0 comments on commit 2d4e747

Please sign in to comment.