Skip to content

Commit 25707f8

Browse files
Update build-and-lint.yml
1 parent 6ac2f2d commit 25707f8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/build-and-lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
-project "mParticle-Apple-SDK.xcodeproj" \
5454
-scheme "mParticle-Apple-SDK" \
5555
-destination "generic/platform=iOS" \
56+
OTHER_CFLAGS="-Wno-deprecated-declarations" \
5657
clean build | xcpretty
5758
5859
- name: Build SDK NoLocation
@@ -62,6 +63,7 @@ jobs:
6263
-project "mParticle-Apple-SDK.xcodeproj" \
6364
-scheme "mParticle-Apple-SDK-NoLocation" \
6465
-destination "generic/platform=iOS" \
66+
OTHER_CFLAGS="-Wno-deprecated-declarations" \
6567
clean build | xcpretty
6668
6769
run-analyzer:
@@ -75,7 +77,7 @@ jobs:
7577

7678
- name: Run static analyzer
7779
run: |
78-
bash -c '! (set -o pipefail && xcodebuild -project "mParticle-Apple-SDK.xcodeproj" -scheme "mParticle-Apple-SDK" -sdk iphonesimulator -configuration Debug -destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=latest" clean analyze | grep -v "warning: The iOS Simulator deployment target" | grep -v "warning: Metadata extraction skipped" | grep -F -v "Repeated use of MParticle sharedInstance in one method; assign to a local variable once." | grep -F -v "warning: Run script build phase '"'"'Run Script'"'"' will be run during every build" | grep -B3 "warning")'
80+
bash -c '! (set -o pipefail && xcodebuild -project "mParticle-Apple-SDK.xcodeproj" -scheme "mParticle-Apple-SDK" -sdk iphonesimulator -configuration Debug -destination "platform=iOS Simulator,name=iPhone 16 Pro,OS=latest" clean analyze | grep -v "warning: The iOS Simulator deployment target" | grep -v "warning: Metadata extraction skipped" | grep -F -v "Repeated use of MParticle sharedInstance in one method; assign to a local variable once." | grep -F -v "warning: Run script build phase '"'"'Run Script'"'"' will be run during every build" | grep -v "setDeviceToken" | grep -v "warning: '.*' is deprecated" | grep -v "deprecated" | grep -B3 "warning")'
7981
8082
pr-notify:
8183
if: >

mParticle-Apple-SDK/Include/MPNotificationController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@interface MPNotificationController_PRIVATE : NSObject <MPNotificationControllerProtocol>
1616

1717
#if TARGET_OS_IOS == 1
18-
+ (nullable NSData *)deviceToken DEPRECATED_MSG_ATTRIBUTE("This method is no longer static. Use an instance method instead.");
18+
+ (nullable NSData *)deviceToken;// DEPRECATED_MSG_ATTRIBUTE("This method is no longer static. Use an instance method instead.");
1919
+ (void)setDeviceToken:(nullable NSData *)devToken DEPRECATED_MSG_ATTRIBUTE("This method is no longer static. Use an instance method instead.");
2020
- (nullable NSData *)deviceToken;
2121
- (void)setDeviceToken:(nullable NSData *)devToken;

mParticle-Apple-SDK/Include/MPStateMachine.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
+ (nullable NSString *)provisioningProfileString;
8080
+ (BOOL)runningInBackground;
8181
+ (void)setRunningInBackground:(BOOL)background;
82-
+ (BOOL)isAppExtension DEPRECATED_MSG_ATTRIBUTE("Use the instance method defined in the AppEnvironmentProvider instead.");
82+
+ (BOOL)isAppExtension; //DEPRECATED_MSG_ATTRIBUTE("Use the instance method defined in the AppEnvironmentProvider instead.");
8383
- (void)configureCustomModules:(nullable NSArray<NSDictionary *> *)customModuleSettings;
8484
- (void)configureRampPercentage:(nullable NSNumber *)rampPercentage;
8585
- (void)configureTriggers:(nullable NSDictionary *)triggerDictionary;

0 commit comments

Comments
 (0)