Skip to content

Commit 61522cf

Browse files
chore: update iOS pods & implement tolerance in iOS
1 parent 47d148f commit 61522cf

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target 'Runner' do
3030

3131
use_frameworks!
3232
use_modular_headers!
33-
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.19/Instabug.podspec'
33+
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec'
3434
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
3535
end
3636

example/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
PODS:
22
- Flutter (1.0.0)
3-
- Instabug (15.1.19)
3+
- Instabug (15.1.24)
44
- instabug_flutter (14.3.0):
55
- Flutter
6-
- Instabug (= 15.1.19)
6+
- Instabug (= 15.1.24)
77
- OCMock (3.6)
88

99
DEPENDENCIES:
1010
- Flutter (from `Flutter`)
11-
- Instabug (from `https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.19/Instabug.podspec`)
11+
- Instabug (from `https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec`)
1212
- instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`)
1313
- OCMock (= 3.6)
1414

@@ -20,16 +20,16 @@ EXTERNAL SOURCES:
2020
Flutter:
2121
:path: Flutter
2222
Instabug:
23-
:podspec: https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.19/Instabug.podspec
23+
:podspec: https://ios-releases.instabug.com/custom/faeture-screen_rendering-release/15.1.24/Instabug.podspec
2424
instabug_flutter:
2525
:path: ".symlinks/plugins/instabug_flutter/ios"
2626

2727
SPEC CHECKSUMS:
2828
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
29-
Instabug: 74377abfdaa9f9f3dff7793353e150e91d2186f7
30-
instabug_flutter: aa9b2365fe41d8a49f9258ab350864bfb5bdce9e
29+
Instabug: 81ff406348f7a9784ad2c681c94279a0ad3fcab7
30+
instabug_flutter: 7aeb6ad19cf4c388aef8955c3aad12ee5373adab
3131
OCMock: 5ea90566be239f179ba766fd9fbae5885040b992
3232

33-
PODFILE CHECKSUM: d61a5c8efcff86500b76349ccad5201d7756fdea
33+
PODFILE CHECKSUM: fb14c1a442ef94a558e4e301f3ea6ba54be132dd
3434

3535
COCOAPODS: 1.15.2

ios/Classes/Modules/ApmApi.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,14 @@ - (void)endScreenRenderForCustomUiTraceData:(nonnull NSDictionary<NSString *,id>
245245
[IBGAPM endCustomUITraceCPWithFrames:frameInfos];
246246
}
247247

248-
- (void)getDeviceRefreshRateAndToleranceWithCompletion:(nonnull void (^)(NSArray<NSNumber *> * _Nullable, FlutterError * _Nullable))completion {
248+
- (void)getDeviceRefreshRateAndToleranceWithCompletion:(nonnull void (^)(NSArray<NSNumber *> * _Nullable, FlutterError * _Nullable))completion {
249+
double tolerance = IBGAPM.screenRenderingThreshold;
249250
if (@available(iOS 10.3, *)) {
250251
double refreshRate = [UIScreen mainScreen].maximumFramesPerSecond;
251-
double tolerance = 10;
252252
completion(@[@(refreshRate), @(tolerance)] ,nil);
253253
} else {
254254
// Fallback for very old iOS versions.
255-
completion(@[@(60.0), @(10.0)] , nil);
255+
completion(@[@(60.0), @(tolerance)] , nil);
256256
}
257257
}
258258

ios/Classes/Util/IBGAPM+PrivateAPIs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,6 @@
3131

3232
+ (void)endCustomUITraceCPWithFrames:(nullable NSArray<IBGFrameInfo *> *)frames;
3333

34+
+ (double)screenRenderingThreshold;
35+
3436
@end

ios/instabug_flutter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Pod::Spec.new do |s|
1717
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-framework "Flutter" -framework "InstabugSDK"'}
1818

1919
s.dependency 'Flutter'
20-
s.dependency 'Instabug', '15.1.19'
20+
s.dependency 'Instabug', '15.1.24'
2121
end
2222

0 commit comments

Comments
 (0)