Skip to content

flex delegate support added #282

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

Open
wants to merge 1 commit into
base: main
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.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 37 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ rootProject.allprojects {
repositories {
google()
mavenCentral()
maven { // Only for snapshot artifacts
name 'ossrh-snapshot'
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
mavenLocal()

}
}

Expand All @@ -27,7 +33,7 @@ apply plugin: 'com.android.library'
android {
// Bumping the plugin compileSdkVersion requires all clients of this plugin
// to bump the version in their app.
compileSdkVersion 31
compileSdkVersion 34
namespace 'org.tensorflow.tflite_flutter'

// Bumping the plugin ndkVersion requires all clients of this plugin to bump
Expand Down Expand Up @@ -55,14 +61,39 @@ android {
}

defaultConfig {
minSdkVersion 19
multiDexEnabled true
minSdkVersion 26
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}

}

buildFeatures {
mlModelBinding true
}
}


dependencies {
def tflite_version = "2.11.0"

implementation("org.tensorflow:tensorflow-lite:${tflite_version}")
implementation("org.tensorflow:tensorflow-lite-gpu:${tflite_version}")
def tflite_version = "2.17.0"
// implementation 'org.tensorflow:tensorflow-lite:2.16.1-nightly-SNAPSHOT'
// implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:1.16.1-nightly-SNAPSHOT'
implementation("org.tensorflow:tensorflow-lite:${tflite_version}")
implementation("org.tensorflow:tensorflow-lite-gpu:${tflite_version}")
implementation "androidx.multidex:multidex:2.0.1"
implementation ("org.tensorflow:tensorflow-lite-select-tf-ops:2.16.1")
implementation 'com.google.mediapipe:tasks-text:latest.release'

implementation 'org.tensorflow:tensorflow-lite:0.1.100'
implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.1.100'






// implementation 'org.tensorflow:tensorflow-lite:0.0.0-nightly-SNAPSHOT'
// // This dependency adds the necessary TF op support.
// implementation 'org.tensorflow:tensorflow-lite-select-tf-ops:0.0.0-nightly-SNAPSHOT'
}
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.tensorflow.tflite_flutter">
>
</manifest>
44 changes: 0 additions & 44 deletions example/audio_classification/.gitignore

This file was deleted.

35 changes: 0 additions & 35 deletions example/audio_classification/.metadata

This file was deleted.

27 changes: 0 additions & 27 deletions example/audio_classification/README.md

This file was deleted.

29 changes: 0 additions & 29 deletions example/audio_classification/analysis_options.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions example/audio_classification/android/.gitignore

This file was deleted.

73 changes: 0 additions & 73 deletions example/audio_classification/android/app/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

Loading