|
@@ -0,0 +1,16 @@
|
|
|
+#!/bin/sh
|
|
|
+
|
|
|
+# Get the current branch
|
|
|
+current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
|
+
|
|
|
+# If the current branch is f-droid, echo Hello World
|
|
|
+if [ "$current_branch" = "f-droid" ]; then
|
|
|
+ # Verify that the pubspec.yaml doesn't contain certain words
|
|
|
+ WORDS=("in_app_purchase" "firebase")
|
|
|
+ for word in ${WORDS[@]}; do
|
|
|
+ if grep -q $word pubspec.yaml; then
|
|
|
+ echo "The pubspec.yaml file dependency on '$word', which is not allowed on the f-droid branch."
|
|
|
+ exit 1
|
|
|
+ fi
|
|
|
+ done
|
|
|
+fi
|