Skip to content

Commit

Permalink
fix: Adding underlying library version to library field (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 authored Jun 28, 2024
1 parent b9b7c5d commit bd72e9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import com.amplitude.core.events.BaseEvent
import com.amplitude.core.platform.Plugin

class FlutterLibraryPlugin(val library: String): Plugin {
override val type: Plugin.Type = Plugin.Type.Before
override val type: Plugin.Type = Plugin.Type.Enrichment
override lateinit var amplitude: Amplitude

override fun execute(event: BaseEvent): BaseEvent? {
if (event.library == null) {
event.library = library
} else {
event.library = "$library_${event.library}"
event.library = "${library}_${event.library}"
}
return super.execute(event)
}
Expand Down
10 changes: 5 additions & 5 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- amplitude_flutter (0.0.1):
- AmplitudeSwift (~> 1.4.4)
- AmplitudeSwift (~> 1.6)
- Flutter
- AmplitudeSwift (1.4.4):
- AmplitudeSwift (1.6.2):
- AnalyticsConnector (~> 1.0.1)
- AnalyticsConnector (1.0.3)
- Flutter (1.0.0)
Expand All @@ -23,11 +23,11 @@ EXTERNAL SOURCES:
:path: Flutter

SPEC CHECKSUMS:
amplitude_flutter: 490e6b7e89b4dcac86dced0cd85e8a477419f751
AmplitudeSwift: 13725c3313c2e2cac30836dc2c973d3883baabef
amplitude_flutter: aed4ad5d2da06894245fde7e8c56fed39ac6dca8
AmplitudeSwift: cc22038404dc5581e2dea5dc2501302959dd3c90
AnalyticsConnector: a53214d38ae22734c6266106c0492b37832633a9
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854

PODFILE CHECKSUM: cc1f88378b4bfcf93a6ce00d2c587857c6008d3b

COCOAPODS: 1.12.1
COCOAPODS: 1.15.2

0 comments on commit bd72e9d

Please sign in to comment.