Skip to content

Commit

Permalink
refactor: update ios bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Mar 5, 2024
1 parent b9ecc6c commit d926364
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 246 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ class AmplitudeFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware {
(map["deviceManufacturer"] as? Boolean)?.let { if (!it) trackingOptions.disableDeviceManufacturer() }
(map["osVersion"] as? Boolean)?.let { if (!it) trackingOptions.disableOsVersion() }
(map["osName"] as? Boolean)?.let { if (!it) trackingOptions.disableOsName() }
(map["versionName"] as? Boolean)?.let { if (!it) trackingOptions.disableVersionName() }
(map["adid"] as? Boolean)?.let { if (!it) trackingOptions.disableAdid() }
(map["appSetId"] as? Boolean)?.let { if (!it) trackingOptions.disableAppSetId() }
(map["deviceBrand"] as? Boolean)?.let { if (!it) trackingOptions.disableDeviceBrand() }
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down
20 changes: 12 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
PODS:
- Amplitude (8.16.1)
- amplitude_flutter (0.0.1):
- Amplitude (= 8.16.1)
- AmplitudeSwift (~> 1.0.0)
- Flutter
- AmplitudeSwift (1.0.0):
- AnalyticsConnector (~> 1.0.1)
- AnalyticsConnector (1.0.3)
- Flutter (1.0.0)

DEPENDENCIES:
Expand All @@ -11,7 +13,8 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- Amplitude
- AmplitudeSwift
- AnalyticsConnector

EXTERNAL SOURCES:
amplitude_flutter:
Expand All @@ -20,10 +23,11 @@ EXTERNAL SOURCES:
:path: Flutter

SPEC CHECKSUMS:
Amplitude: ef9ed339ddd33c9183edf63fa4bbaa86cf873321
amplitude_flutter: 8ddb231989e68ed8c005c838d7fc59edbca09833
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
amplitude_flutter: 16812bda98a0de430b0021dbd59648c84b76f9ed
AmplitudeSwift: 17755f7599198721c32e26b884423759c2daec7d
AnalyticsConnector: a53214d38ae22734c6266106c0492b37832633a9
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854

PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea
PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b

COCOAPODS: 1.11.3
COCOAPODS: 1.12.1
6 changes: 4 additions & 2 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Amplitude/Amplitude.framework",
"${BUILT_PRODUCTS_DIR}/AmplitudeSwift/AmplitudeSwift.framework",
"${BUILT_PRODUCTS_DIR}/AnalyticsConnector/AnalyticsConnector.framework",
"${BUILT_PRODUCTS_DIR}/amplitude_flutter/amplitude_flutter.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Amplitude.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AmplitudeSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AnalyticsConnector.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/amplitude_flutter.framework",
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Loading

0 comments on commit d926364

Please sign in to comment.