Matthew Mathias 3 лет назад
Родитель
Сommit
cde90104f6

+ 2 - 1
.github/workflows/tests.yml

@@ -78,7 +78,6 @@ jobs:
       shell: bash
       env:
         EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
-        FOO_BAR : ${{ secrets.FOO_BAR }}
         PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
       run: |
         echo EMAIL_SECRET = $EMAIL_SECRET$'\n'PASSWORD_SECRET = $PASSWORD_SECRET >> DaysUntilBirthdayUITests\(iOS\)/Credentials.xcconfig
@@ -91,6 +90,8 @@ jobs:
           -sdk iphonesimulator \
           -destination 'platform=iOS Simulator,name=iPhone 11'
     - name: Run test target for Google Sign-in button for Swift
+      env:
+        FOO_BAR : ${{ secrets.FOO_BAR }}
       run: |
         xcodebuild \
           -project DaysUntilBirthday.xcodeproj \

+ 2 - 4
Samples/Swift/DaysUntilBirthday/DaysUntilBirthday.xcodeproj/project.pbxproj

@@ -603,11 +603,9 @@
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
 				CODE_SIGN_STYLE = Automatic;
 				CURRENT_PROJECT_VERSION = 1;
-				FOO_BAR = defaultValue;
 				GCC_PREPROCESSOR_DEFINITIONS = (
-					"DEBUG=1",
 					"$(inherited)",
-					"FOO_BAR=$(FOO_BAR)",
+					"DEBUG=1",
 				);
 				GENERATE_INFOPLIST_FILE = YES;
 				INFOPLIST_FILE = "DaysUntilBirthdayUITests-iOS--Info.plist";
@@ -635,7 +633,7 @@
 				CLANG_CXX_LANGUAGE_STANDARD = "gnu++17";
 				CODE_SIGN_STYLE = Automatic;
 				CURRENT_PROJECT_VERSION = 1;
-				FOO_BAR = "";
+				GCC_PREPROCESSOR_DEFINITIONS = "";
 				GENERATE_INFOPLIST_FILE = YES;
 				INFOPLIST_FILE = "DaysUntilBirthdayUITests-iOS--Info.plist";
 				INFOPLIST_KEY_LSApplicationCategoryType = "";