Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in missing attribution functions #219

Merged
merged 5 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 7 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ GEM
artifactory (3.0.15)
atomos (0.1.3)
aws-eventstream (1.2.0)
aws-partitions (1.620.0)
aws-sdk-core (3.132.0)
aws-partitions (1.621.0)
aws-sdk-core (3.134.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
Expand Down Expand Up @@ -112,7 +112,7 @@ GEM
ethon (0.15.0)
ffi (>= 1.15.0)
excon (0.92.4)
faraday (1.10.1)
faraday (1.10.2)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand Down Expand Up @@ -187,7 +187,8 @@ GEM
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
git (1.11.0)
git (1.12.0)
addressable (~> 2.8)
rchardet (~> 1.8)
google-apis-androidpublisher_v3 (0.25.0)
google-apis-core (>= 0.7, < 2.a)
Expand Down Expand Up @@ -243,7 +244,7 @@ GEM
memoist (0.16.2)
mini_magick (4.11.0)
mini_mime (1.1.2)
minitest (5.16.2)
minitest (5.16.3)
molinillo (0.8.0)
multi_json (1.15.0)
multipart-post (2.0.0)
Expand Down Expand Up @@ -294,7 +295,7 @@ GEM
tty-cursor (~> 0.7)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.4)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
uber (0.1.0)
unf (0.1.4)
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
ext.assertj_version = '3.22.0'
ext.mockk_version = '1.12.3'
ext.gradle_maven_publish = '0.19.0'
ext.purchases_version = '5.4.1'
ext.purchases_version = '5.6.0'
taquitos marked this conversation as resolved.
Show resolved Hide resolved
ext.billing_unityiap_purchases_version = '3.0.3'

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ fun setMparticleID(mparticleID: String?) {
Purchases.sharedInstance.setMparticleID(mparticleID)
}

fun setCleverTapID(cleverTapID: String?) {
Purchases.sharedInstance.setCleverTapID(cleverTapID)
}

fun setMixpanelDistinctID(mixpanelDistinctID: String?) {
Purchases.sharedInstance.setMixpanelDistinctID(mixpanelDistinctID)
}

fun setFirebaseAppInstanceID(firebaseAppInstanceID: String?) {
Purchases.sharedInstance.setFirebaseAppInstanceID(firebaseAppInstanceID)
}

fun setOnesignalID(onesignalID: String?) {
Purchases.sharedInstance.setOnesignalID(onesignalID)
}
Expand Down
5 changes: 5 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ platform :ios do
archive
end

desc "Create Carthage archive"
lane :archive_ios do
archive
end
taquitos marked this conversation as resolved.
Show resolved Hide resolved

desc "replace API KEY for integration tests"
lane :replace_api_key_integration_tests do
folder = './ios/PurchasesHybridCommon/PurchasesHybridCommonIntegrationTests/'
Expand Down
8 changes: 8 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ Run pod install

Release to CocoaPods, create Carthage archive, and create GitHub release

### ios archive_ios

```sh
[bundle exec] fastlane ios archive_ios
```

Create Carthage archive

### ios replace_api_key_integration_tests

```sh
Expand Down
8 changes: 4 additions & 4 deletions ios/PurchasesHybridCommon/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
PODS:
- Nimble (10.0.0)
- Quick (5.0.1)
- RevenueCat (4.10.1)
- RevenueCat (4.10.2)
- SnapshotTesting (1.9.0)

DEPENDENCIES:
- Nimble
- Quick
- RevenueCat (= 4.10.1)
- RevenueCat (= 4.10.2)
- "SnapshotTesting (from `git@github.com:pointfreeco/swift-snapshot-testing.git`, branch `main`)"

SPEC REPOS:
Expand All @@ -29,9 +29,9 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
Nimble: 5316ef81a170ce87baf72dd961f22f89a602ff84
Quick: 749aa754fd1e7d984f2000fe051e18a3a9809179
RevenueCat: b36a33a438f27ba727397417b95a6741e1524831
RevenueCat: 8c2f703179a96f35d113e5b2185a11154dc9e5ad
SnapshotTesting: 6141c48b6aa76ead61431ca665c14ab9a066c53b

PODFILE CHECKSUM: 99c07b545339d58005022d077f4c840248ae6ff5
PODFILE CHECKSUM: 20fff9ae51da043eb2888ef730b12c6b9de71732

COCOAPODS: 1.11.3
Original file line number Diff line number Diff line change
Expand Up @@ -403,10 +403,12 @@ import RevenueCat
@objc static func collectDeviceIdentifiers() {
Purchases.shared.attribution.collectDeviceIdentifiers()
}

@objc static func setAdjustID(_ adjustID: String?) {
Purchases.shared.attribution.setAdjustID(adjustID)
}
@objc static func setCleverTapID(_ cleverTapID: String?) {
Purchases.shared.attribution.setCleverTapID(cleverTapID)
}
@objc static func setAppsflyerID(_ appsflyerID: String?) {
Purchases.shared.attribution.setAppsflyerID(appsflyerID)
}
Expand All @@ -416,6 +418,12 @@ import RevenueCat
@objc static func setMparticleID(_ mParticleID: String?) {
Purchases.shared.attribution.setMparticleID(mParticleID)
}
@objc static func setMixpanelDistinctID(_ mixpanelDistinctID: String?) {
Purchases.shared.attribution.setMixpanelDistinctID(mixpanelDistinctID)
}
@objc static func setFirebaseAppInstanceID(_ firebaseAppInstanceID: String?) {
Purchases.shared.attribution.setFirebaseAppInstanceID(firebaseAppInstanceID)
}
@objc static func setOnesignalID(_ onesignalID: String?) {
Purchases.shared.attribution.setOnesignalID(onesignalID)
}
Expand Down