Skip to content

Commit

Permalink
conditional pebblekit provider
Browse files Browse the repository at this point in the history
  • Loading branch information
crc-32 committed Jun 10, 2024
1 parent 145b8dc commit a6767d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ android {
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
android.defaultConfig.vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [
overridePebbleKitProvider: 'true', // This makes the app incompatible with the official Pebble app when set to 'true'
]
}
signingConfigs {
release {
Expand Down
3 changes: 2 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@
</provider>

<provider
android:enabled="${overridePebbleKitProvider}"
android:name=".providers.PebbleKitProvider"
android:authorities="com.getpebble.android.provider.basalt"
android:exported="true"
android:exported="${overridePebbleKitProvider}"
tools:ignore="ExportedContentProvider" />
</application>
</manifest>

0 comments on commit a6767d3

Please sign in to comment.