-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
31 lines (27 loc) · 1.66 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Workarround for specify pub https://github.com/bannzai/Pilll/pull/23#discussion_r481963119
.PHONY: prepare
prepare:
cd ios; rm -rf ./Pods; pod install;
.PHONY: secret
secret:
echo $(FILE_FIREBASE_ANDROID_DEVELOPMENT) | base64 -D > android/app/src/dev/google-services.json
echo $(FILE_FIREBASE_ANDROID_PRODUCTION) | base64 -D > android/app/src/prod/google-services.json
echo $(FILE_FIREBASE_IOS_DEVELOPMENT) | base64 -D > ios/Firebase/GoogleService-Info-dev.plist
echo $(FILE_FIREBASE_IOS_PRODUCTION) | base64 -D > ios/Firebase/GoogleService-Info-prod.plist
echo $(XCCONFIG_SECRET) | base64 -D > ios/Flutter/Secret.xcconfig
echo $(STOREKIT_TESTING_CONFIGURATION_PUBLIC_CERT) | base64 -D > ios/Runner/StoreKitTestCertificate.cer
echo $(DART_DEFINE_FROM_FILE_DEV) | base64 -D > environment/dev.json
echo $(DART_DEFINE_FROM_FILE_PROD) | base64 -D > environment/prod.json
./scripts/secret.sh
./android/scripts/secret_properties.sh
.PHONY: secret-backup
secret-backup:
mv android/app/src/dev/google-services.json android/app/src/dev/_google-services.json
mv android/app/src/prod/google-services.json android/app/src/prod/_google-services.json
mv ios/Firebase/GoogleService-Info-dev.plist ios/Firebase/_GoogleService-Info-Development.plist
mv ios/Firebase/GoogleService-Info-prod.plist ios/Firebase/_GoogleService-Info-prod.plist
mv ios/Flutter/Development-Secret.xcconfig ios/Flutter/_Development-Secret.xcconfig
mv ios/Flutter/Production-Secret.xcconfig ios/Flutter/_Production-Secret.xcconfig
mv ios/Runner/StoreKitTestCertificate.cer ios/Runner/_StoreKitTestCertificate.cer
mv lib/app/secret.dart lib/app/_secret.dart
mv android/secret.properties android/_secret.properties