Skip to content

Commit

Permalink
List of included changes:
Browse files Browse the repository at this point in the history
  - Add unbundled smart reply dependency in sample app

PiperOrigin-RevId: 471050009
Change-Id: I513846333004e63b3d9710545943042faefb2602
  • Loading branch information
Google ML Kit authored and Yun Liu committed Aug 30, 2022
1 parent 6cc445c commit 0098679
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/smartreply/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ dependencies {
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'

implementation 'com.google.mlkit:smart-reply: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-smart-reply:16.0.0-beta1'

implementation 'com.google.guava:guava:27.0.1-android'
}
6 changes: 6 additions & 0 deletions android/smartreply/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
android:label="@string/app_name"
android:theme="@style/AppTheme">

<!-- Optional: Add it to automatically download ML model to device after
your app is installed.-->
<meta-data
android:name="com.google.mlkit.vision.DEPENDENCIES"
android:value="smart_reply"/>

<activity
android:name=".EntryChoiceActivity"
android:exported="true">
Expand Down

0 comments on commit 0098679

Please sign in to comment.