[samples/DrumThumper] Add flavor for publishing to Play Store with different application ID
diff --git a/samples/drumthumper/build.gradle b/samples/drumthumper/build.gradle
index 4bf0eb9..da9c6d8 100644
--- a/samples/drumthumper/build.gradle
+++ b/samples/drumthumper/build.gradle
@@ -22,6 +22,20 @@
         }
     }
 
+    // This sample will also be published on the Google Play Store which needs a different
+    // application id from "com.google" as this is reserved for official Google products.
+    flavorDimensions "publishing-target"
+    productFlavors {
+        codesample {
+            dimension "publishing-target"
+            applicationId "com.google.oboe.samples.drumthumper"
+        }
+        playstore {
+            dimension "publishing-target"
+            applicationId "com.mobilieer.drumthumper"
+        }
+    }
+
     externalNativeBuild {
         cmake {
             path 'src/main/cpp/CMakeLists.txt'