Skip to content

Commit

Permalink
Feature/loc 505 pod deployment (#2)
Browse files Browse the repository at this point in the history
* Rename podspec and class file to match.

* Update Gimbal dependency and fix naming issue.

Update Gimbal dependency version to 2.92.1.
Update architecture exclusions to match that of new Gimbal dependency version.
Fix AirshipGimbal classname usage.

* Update Airship dependency version to 16.9.4.

Co-authored-by: Andrew Tran <[email protected]>
  • Loading branch information
1 parent 98e465e commit e072cd3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions AirshipGimbalAdapter.podspec → GimbalAirshipAdapter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@ Pod::Spec.new do |s|
s.version = "1.0.0"
s.name = "GimbalAirshipAdapter"
s.summary = "An adapter for integrating Gimbal place events with Airship."
s.documentation_url = "https://github.com/gimbalinc/ios-airship-adapter"
s.documentation_url = "https://github.com/gimbalinc/airship-adapter-ios"
s.homepage = "https://infillion.com/commerce/gimbal/"
s.author = { "Gimbal" => "[email protected]" }
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
s.source = { :git => "https://github.com/PaeDae/ios-airship-adapter.git", :tag => s.version.to_s }
s.source = { :git => "https://github.com/gimbalinc/airship-adapter-ios.git", :tag => s.version.to_s }
s.ios.deployment_target = "11.0"
s.swift_version = "5.0"
s.source_files = "Pod/Classes/*"
s.requires_arc = true
s.dependency "GimbalXCFramework", "~> 2.85"
s.dependency "Airship", "~> 16.1"
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.dependency "GimbalXCFramework", "~> 2.92.1"
s.dependency "Airship", "~> 16.9.4"
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386'
}
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
end
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fileprivate let shouldTrackRegionEventsKey = "gmbl_should_track_region_events"
/**
* Singleton access.
*/
@objc public static let shared = AirshipGimbalAdapter()
@objc public static let shared = AirshipAdapter()

#if !targetEnvironment(simulator)

Expand Down Expand Up @@ -109,7 +109,7 @@ fileprivate let shouldTrackRegionEventsKey = "gmbl_should_track_region_events"
}

NotificationCenter.default.addObserver(self,
selector: #selector(AirshipGimbalAdapter.updateDeviceAttributes),
selector: #selector(AirshipAdapter.updateDeviceAttributes),
name: Channel.channelCreatedEvent,
object: nil)
}
Expand Down Expand Up @@ -200,27 +200,27 @@ private class AirshipGimbalDelegate : NSObject, PlaceManagerDelegate {
func placeManager(_ manager: PlaceManager, didBegin visit: Visit) {
trackPlaceEventFor(visit, boundaryEvent: .enter)

AirshipGimbalAdapter.shared.delegate?.placeManager?(manager, didBegin: visit)
AirshipAdapter.shared.delegate?.placeManager?(manager, didBegin: visit)
}

func placeManager(_ manager: PlaceManager, didBegin visit: Visit, withDelay delayTime: TimeInterval) {
trackPlaceEventFor(visit, boundaryEvent: .enter)

AirshipGimbalAdapter.shared.delegate?.placeManager?(manager, didBegin: visit, withDelay: delayTime)
AirshipAdapter.shared.delegate?.placeManager?(manager, didBegin: visit, withDelay: delayTime)
}

func placeManager(_ manager: PlaceManager, didEnd visit: Visit) {
trackPlaceEventFor(visit, boundaryEvent: .exit)

AirshipGimbalAdapter.shared.delegate?.placeManager?(manager, didEnd: visit)
AirshipAdapter.shared.delegate?.placeManager?(manager, didEnd: visit)
}

func placeManager(_ manager: PlaceManager, didReceive sighting: BeaconSighting, forVisits visits: [Any]) {
AirshipGimbalAdapter.shared.delegate?.placeManager?(manager, didReceive: sighting, forVisits: visits)
AirshipAdapter.shared.delegate?.placeManager?(manager, didReceive: sighting, forVisits: visits)
}

func placeManager(_ manager: PlaceManager, didDetect location: CLLocation) {
AirshipGimbalAdapter.shared.delegate?.placeManager?(manager, didDetect: location)
AirshipAdapter.shared.delegate?.placeManager?(manager, didDetect: location)
}

private func trackPlaceEventFor(_ visit: Visit, boundaryEvent: UABoundaryEvent) {
Expand Down

0 comments on commit e072cd3

Please sign in to comment.