Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AGP 8.1.0 TFLite Examples #479

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions lite/examples/image_segmentation/android/app/build.gradle
Expand Up @@ -7,12 +7,13 @@ plugins {
}

android {
compileSdk 32
compileSdk 33
namespace = "org.tensorflow.lite.examples.imagesegmentation"

defaultConfig {
applicationId "org.tensorflow.lite.examples.imagesegmentation"
minSdk 23
targetSdk 32
targetSdk 33
versionCode 1
versionName "1.0"

Expand All @@ -26,13 +27,14 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}


buildFeatures {
viewBinding true
}
Expand Down
Expand Up @@ -16,8 +16,7 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
xmlns:tools="http://schemas.android.com/tools"
package="org.tensorflow.lite.examples.imagesegmentation">
xmlns:tools="http://schemas.android.com/tools">
<!-- Enable instant app support -->
<dist:module dist:instant="true" />

Expand Down
6 changes: 3 additions & 3 deletions lite/examples/image_segmentation/android/build.gradle
Expand Up @@ -6,9 +6,9 @@ buildscript {
}
}
plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
id 'com.android.application' version '8.1.0' apply false
id 'com.android.library' version '8.1.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.10' apply false
}

task clean(type: Delete) {
Expand Down
4 changes: 2 additions & 2 deletions lite/examples/recommendation/android/app/build.gradle
@@ -1,10 +1,10 @@
apply plugin: 'com.android.application'

android {
namespace = "org.tensorflow.lite.examples.recommendation"
compileSdkVersion 29
buildToolsVersion "29.0.0"
defaultConfig {
applicationId "org.tensorflow.lite.examples.bertapp"
applicationId "org.tensorflow.lite.examples.recommendation"
minSdkVersion 26
targetSdkVersion 29
versionCode 1
Expand Down
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.tensorflow.lite.examples.recommendation">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
2 changes: 1 addition & 1 deletion lite/examples/recommendation/android/build.gradle
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.android.tools.build:gradle:8.1.0'
classpath 'de.undercouch:gradle-download-task:4.0.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down