Bladeren bron

Add IAM headless to CI (#2341)

* Fix new Xcode 10.2 warning
Paul Beusterien 7 jaren geleden
bovenliggende
commit
86051203ac

+ 2 - 1
Firebase/InAppMessaging/Data/FIRIAMFetchResponseParser.h

@@ -32,7 +32,8 @@ NS_ASSUME_NONNULL_BEGIN
 // @param fetchWaitTime would be non nil if fetch wait time data is found in the api response.
 - (NSArray<FIRIAMMessageDefinition *> *)parseAPIResponseDictionary:(NSDictionary *)responseDict
                                                  discardedMsgCount:(NSInteger *)discardCount
-                                            fetchWaitTimeInSeconds:(NSNumber **)fetchWaitTime;
+                                            fetchWaitTimeInSeconds:
+                                                (NSNumber *_Nullable *_Nonnull)fetchWaitTime;
 
 - (instancetype)init NS_UNAVAILABLE;
 - (instancetype)initWithTimeFetcher:(id<FIRIAMTimeFetcher>)timeFetcher;

+ 0 - 1
InAppMessaging/Example/App/InAppMessaging-Example-iOS/AppDelegate.m

@@ -53,7 +53,6 @@
   sdkSetting.loggerSizeAfterReduce = 600;
   sdkSetting.appFGRenderMinIntervalInMinutes = 0.1;
   sdkSetting.loggerInVerboseMode = YES;
-  sdkSetting.conversionTrackingExpiresInSeconds = 180;
   sdkSetting.firebaseAutoDataCollectionEnabled = NO;
 
   sdkSetting.clearcutStrategy =

+ 2 - 3
InAppMessaging/Example/Podfile

@@ -1,9 +1,8 @@
-
 use_frameworks!
 
 # Uncomment the next two lines for pre-release testing on public repo
-source 'https://github.com/Firebase/SpecsStaging.git'
-source 'https://github.com/CocoaPods/Specs.git'
+# source 'https://github.com/Firebase/SpecsStaging.git'
+# source 'https://github.com/CocoaPods/Specs.git'
 
 pod 'FirebaseCore', :path => '../..'
 

+ 7 - 0
scripts/build.sh

@@ -233,6 +233,13 @@ case "$product-$method-$platform" in
     ;;
 
   InAppMessagingDisplay-xcodebuild-iOS)
+    RunXcodebuild \
+        -workspace 'InAppMessaging/Example/InAppMessaging-Example-iOS.xcworkspace'  \
+        -scheme 'InAppMessaging_Example_iOS' \
+        "${xcb_flags[@]}" \
+        build \
+        test
+
     # Run UI tests on both iPad and iPhone simulators
     # TODO: Running two destinations from one xcodebuild command stopped working with Xcode 10.
     # Consider separating static library tests to a separate job.

+ 1 - 0
scripts/install_prereqs.sh

@@ -48,6 +48,7 @@ case "$PROJECT-$PLATFORM-$METHOD" in
   InAppMessagingDisplay-iOS-xcodebuild)
     gem install xcpretty
     bundle exec pod install --project-directory=InAppMessagingDisplay/Example --repo-update
+    bundle exec pod install --project-directory=InAppMessaging/Example --repo-update
     ;;
 
   Firestore-*-xcodebuild | Firestore-*-fuzz)