File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ manual steps.
57
57
${TRANSFORMER_DEMO_ROOT}/src/withMediaPipe/assets
58
58
```
59
59
60
- 1. Select the `withMediaPipe` build variant in Android Studio, then build and
61
- run the demo app and select a MediaPipe-based effect.
60
+ 1. In Android Studio, gradle sync and select the `withMediaPipe` build variant
61
+ (this will only appear if the AAR is present), then build and run the demo
62
+ app and select a MediaPipe-based effect.
62
63
63
64
[Transformer]: https://exoplayer.dev/transforming-media.html
64
65
[MediaPipe]: https://google.github.io/mediapipe/
Original file line number Diff line number Diff line change @@ -56,6 +56,16 @@ android {
56
56
dimension " mediaPipe"
57
57
}
58
58
}
59
+
60
+ // Ignore the withMediaPipe variant if the MediaPipe AAR is not present.
61
+ if (! project. file(" libs/edge_detector_mediapipe_aar.aar" ). exists()) {
62
+ variantFilter { variant ->
63
+ def names = variant. flavors* . name
64
+ if (names. contains(" withMediaPipe" )) {
65
+ setIgnore(true )
66
+ }
67
+ }
68
+ }
59
69
}
60
70
61
71
dependencies {
You can’t perform that action at this time.
0 commit comments