From 6a214e8baf6900de62fc9ba59ce52d3ce660c22c Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 10:07:28 +0300 Subject: [PATCH 01/19] start change --- .github/bash_scripts/pre_release.sh | 1 + .github/workflows/prepare-for-QA-release.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index 8d9281b..b512598 100644 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -3,6 +3,7 @@ appsflyerLibVersion=$1 sed -i '' "s/version_appsflyerLib = \'.*\'/version_appsflyerLib = \'$appsflyerLibVersion\'/g" segment-appsflyer-ios.podspec +sed -i '' "s/s.name = \"segment-appsflyer-ios\"/s.name = \"segment-appsflyer-ios-qa\"/g" segment-appsflyer-ios.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift diff --git a/.github/workflows/prepare-for-QA-release.yml b/.github/workflows/prepare-for-QA-release.yml index 1e8b617..2b0644e 100644 --- a/.github/workflows/prepare-for-QA-release.yml +++ b/.github/workflows/prepare-for-QA-release.yml @@ -12,6 +12,7 @@ jobs: uses: actions/checkout@v3 - name: Determine release tag and release branch run: | + echo ${{github.ref_name}} TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV - name: run script From b4c99fb226c80e7e00c4229dc5210b6cfb54f52a Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 10:17:46 +0300 Subject: [PATCH 02/19] add to podspec qa modifications --- .github/bash_scripts/pre_release.sh | 2 ++ .github/workflows/prepare-for-QA-release.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index b512598..47e43ff 100644 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -1,8 +1,10 @@ #!/bin/bash appsflyerLibVersion=$1 +rcVersion=$2 sed -i '' "s/version_appsflyerLib = \'.*\'/version_appsflyerLib = \'$appsflyerLibVersion\'/g" segment-appsflyer-ios.podspec +sed -i '' "s/version_plugin = \'.*\'/version_plugin = \'$rcVersion\'/g" segment-appsflyer-ios.podspec sed -i '' "s/s.name = \"segment-appsflyer-ios\"/s.name = \"segment-appsflyer-ios-qa\"/g" segment-appsflyer-ios.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift diff --git a/.github/workflows/prepare-for-QA-release.yml b/.github/workflows/prepare-for-QA-release.yml index 2b0644e..502841d 100644 --- a/.github/workflows/prepare-for-QA-release.yml +++ b/.github/workflows/prepare-for-QA-release.yml @@ -16,7 +16,7 @@ jobs: TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV - name: run script - run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} + run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{github.ref_name}} - name: Commit changes uses: EndBug/add-and-commit@v9 with: From a51d3b72cf494c67b9aca4b1f972d61623ff6c45 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 10:35:35 +0300 Subject: [PATCH 03/19] add tag --- .github/workflows/prepare-for-QA-release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare-for-QA-release.yml b/.github/workflows/prepare-for-QA-release.yml index 502841d..8ec238a 100644 --- a/.github/workflows/prepare-for-QA-release.yml +++ b/.github/workflows/prepare-for-QA-release.yml @@ -14,14 +14,20 @@ jobs: run: | echo ${{github.ref_name}} TAG=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+') - echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV + echo "PLUGIN_VERSION=$TAG" >> $GITHUB_ENV + TAG_RC=$(echo "${{github.ref_name}}" | grep -Eo '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+') + echo "PLUGIN_VERSION_RC=$TAG_RC" >> $GITHUB_ENV + - name: run script - run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{github.ref_name}} + run: bash .github/bash_scripts/pre_release.sh ${{env.PLUGIN_VERSION}} ${{env.PLUGIN_VERSION_RC}} - name: Commit changes uses: EndBug/add-and-commit@v9 with: author_name: Moris Gateno author_email: moris.gateno@appsflyer.com message: 'Commited from github action - prepaing the repo for QA locally.' - add: '.' + add: '.' + tag: "${{env.PLUGIN_VERSION_RC}} --force" + tag_push: '--force' + From 4e9586d108412a656732fd891a51fed3c79d32ca Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 11:22:00 +0300 Subject: [PATCH 04/19] add change yo workflows --- .github/bash_scripts/pre_release.sh | 1 + .github/workflows/release-QA-workflow.yml | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index 47e43ff..a482bb1 100644 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -6,6 +6,7 @@ rcVersion=$2 sed -i '' "s/version_appsflyerLib = \'.*\'/version_appsflyerLib = \'$appsflyerLibVersion\'/g" segment-appsflyer-ios.podspec sed -i '' "s/version_plugin = \'.*\'/version_plugin = \'$rcVersion\'/g" segment-appsflyer-ios.podspec sed -i '' "s/s.name = \"segment-appsflyer-ios\"/s.name = \"segment-appsflyer-ios-qa\"/g" segment-appsflyer-ios.podspec +mv segment-appsflyer-ios.podspec segment-appsflyer-ios-qa.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index c1dfe27..c9dfc03 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -25,7 +25,20 @@ jobs: if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' uses: ./.github/workflows/unit-tests-workflow.yml - Deploy-Locally-To-QA: + Prepere-To-QA: needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' uses: ./.github/workflows/prepare-for-QA-release.yml + + Release-To-QA: + needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed,Prepere-To-QA] + if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' + steps: + - name: Install Cocoapods + run: gem install cocoapods + - name: Push to COCOAPODS + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} + + From 6c51caf8a6762996b54b2a0d9789dbb3dcc90bf0 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 16:17:38 +0300 Subject: [PATCH 05/19] . --- .github/workflows/release-QA-workflow.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index c9dfc03..fa64311 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -31,9 +31,12 @@ jobs: uses: ./.github/workflows/prepare-for-QA-release.yml Release-To-QA: + runs-on: macos-latest needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed,Prepere-To-QA] if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' steps: + - name: Checkout + uses: actions/checkout@v3 - name: Install Cocoapods run: gem install cocoapods - name: Push to COCOAPODS From 9d954a93eeae7bc1281692f272528996d62e037a Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 16:38:15 +0300 Subject: [PATCH 06/19] . --- ...release.yml => prepare-for-QA-&-release.yml} | 9 +++++++++ .github/workflows/release-QA-workflow.yml | 17 +---------------- 2 files changed, 10 insertions(+), 16 deletions(-) rename .github/workflows/{prepare-for-QA-release.yml => prepare-for-QA-&-release.yml} (79%) diff --git a/.github/workflows/prepare-for-QA-release.yml b/.github/workflows/prepare-for-QA-&-release.yml similarity index 79% rename from .github/workflows/prepare-for-QA-release.yml rename to .github/workflows/prepare-for-QA-&-release.yml index 8ec238a..ae6a1c3 100644 --- a/.github/workflows/prepare-for-QA-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -30,4 +30,13 @@ jobs: tag: "${{env.PLUGIN_VERSION_RC}} --force" tag_push: '--force' + Release-To-QA: + - name: Install Cocoapods + run: gem install cocoapods + - name: Push to COCOAPODS + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} + + diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index fa64311..7e6e39c 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -28,20 +28,5 @@ jobs: Prepere-To-QA: needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' - uses: ./.github/workflows/prepare-for-QA-release.yml - - Release-To-QA: - runs-on: macos-latest - needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed,Prepere-To-QA] - if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Cocoapods - run: gem install cocoapods - - name: Push to COCOAPODS - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} - + uses: ./.github/workflows/prepare-for-QA-&-release.yml From eec1ea00f7bd1495a06498a53fff79b2d452ad63 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 17:47:59 +0300 Subject: [PATCH 07/19] . --- .github/workflows/prepare-for-QA-&-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index ae6a1c3..485620d 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -34,9 +34,13 @@ jobs: - name: Install Cocoapods run: gem install cocoapods - name: Push to COCOAPODS - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + # uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 + # env: + # COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} env: COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} + run: | + pod trunk push segment-appsflyer-ios-qa.podspec From 03d983e2c63b0ffbc8e89e851d24ea4d704dc9b1 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Mon, 10 Jun 2024 18:01:18 +0300 Subject: [PATCH 08/19] . --- .github/workflows/prepare-for-QA-&-release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index 485620d..07488c3 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -34,13 +34,9 @@ jobs: - name: Install Cocoapods run: gem install cocoapods - name: Push to COCOAPODS - # uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 - # env: - # COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} + uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.CI_COCOAPODS_TOKEN }} - run: | - pod trunk push segment-appsflyer-ios-qa.podspec + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} From 8361cddc138eb9b62727d702bad96bd8f4439907 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Tue, 11 Jun 2024 10:06:16 +0300 Subject: [PATCH 09/19] self_host --- .github/workflows/prepare-for-QA-&-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index 07488c3..7250a5e 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -6,7 +6,7 @@ on: jobs: Change-HardCoded-Version: name: Pre Release - runs-on: macos-latest + runs-on: [ios, self-hosted] steps: - name: Checkout uses: actions/checkout@v3 From 1e79680fa76b80f427bcbf9a5283d08fd6b330e5 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Tue, 11 Jun 2024 10:17:29 +0300 Subject: [PATCH 10/19] . --- .github/workflows/prepare-for-QA-&-release.yml | 6 +----- .github/workflows/release-QA-workflow.yml | 8 ++++---- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index 7250a5e..266db7f 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -28,11 +28,7 @@ jobs: message: 'Commited from github action - prepaing the repo for QA locally.' add: '.' tag: "${{env.PLUGIN_VERSION_RC}} --force" - tag_push: '--force' - - Release-To-QA: - - name: Install Cocoapods - run: gem install cocoapods + tag_push: '--force' - name: Push to COCOAPODS uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 env: diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index 7e6e39c..1adf787 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -20,10 +20,10 @@ jobs: releasenotesfile: - 'releasenotes.**' - Run-Unit-Tests: - needs: Check-If-ReleaseNotes-Pushed - if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' - uses: ./.github/workflows/unit-tests-workflow.yml + # Run-Unit-Tests: + # needs: Check-If-ReleaseNotes-Pushed + # if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' + # uses: ./.github/workflows/unit-tests-workflow.yml Prepere-To-QA: needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] From ef998977439f60281cab0141608f30637234fd95 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Tue, 11 Jun 2024 10:19:30 +0300 Subject: [PATCH 11/19] . --- .github/workflows/release-QA-workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-QA-workflow.yml b/.github/workflows/release-QA-workflow.yml index 1adf787..3def389 100644 --- a/.github/workflows/release-QA-workflow.yml +++ b/.github/workflows/release-QA-workflow.yml @@ -26,7 +26,7 @@ jobs: # uses: ./.github/workflows/unit-tests-workflow.yml Prepere-To-QA: - needs: [Run-Unit-Tests,Check-If-ReleaseNotes-Pushed] + needs: [Check-If-ReleaseNotes-Pushed] if: needs.Check-If-ReleaseNotes-Pushed.outputs.answer == 'false' uses: ./.github/workflows/prepare-for-QA-&-release.yml From a8250fb2aa14e1f60d33e78d786629978a724ff6 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Tue, 11 Jun 2024 10:31:07 +0300 Subject: [PATCH 12/19] . --- .github/workflows/prepare-for-QA-&-release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index 266db7f..5dde7d1 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -30,9 +30,8 @@ jobs: tag: "${{env.PLUGIN_VERSION_RC}} --force" tag_push: '--force' - name: Push to COCOAPODS - uses: michaelhenry/deploy-to-cocoapods-github-action@1.0.10 - env: - COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + run: | + pod trunk push segment-appsflyer-ios-qa.podspec From f22115093ad333fd565183d8bcf78cac7c13b2ea Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Tue, 11 Jun 2024 10:52:44 +0300 Subject: [PATCH 13/19] . --- .github/workflows/prepare-for-QA-&-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/prepare-for-QA-&-release.yml b/.github/workflows/prepare-for-QA-&-release.yml index 5dde7d1..fcf84ea 100644 --- a/.github/workflows/prepare-for-QA-&-release.yml +++ b/.github/workflows/prepare-for-QA-&-release.yml @@ -31,6 +31,7 @@ jobs: tag_push: '--force' - name: Push to COCOAPODS run: | + pod trunk me pod trunk push segment-appsflyer-ios-qa.podspec From fd7beb7ee7811a63061663e87da165c96454e7f9 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 11:59:29 +0300 Subject: [PATCH 14/19] =?UTF-8?q?=D7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Classes/SEGAppsFlyerIntegration.m | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m index 304af66..5465413 100644 --- a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m +++ b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m @@ -165,7 +165,13 @@ - (void)identify:(SEGIdentifyPayload *)payload } - (void) start { - [self.appsflyer start]; + [self.appsflyer startWithCompletionHandler:^(NSDictionary * _Nullable dictionary, NSError * _Nullable error) { + if(error == nil){ + + [self.appsflyer logEvent:@"Start-Success" withValues:@{}]; + + } + }]; } @@ -257,7 +263,7 @@ - (void)onConversionDataSuccess:(nonnull NSDictionary *)conversionInfo { // If you are working with networks that don't allow passing user level data to 3rd parties, // you will need to apply code to filter out these networks before calling // `[self.analytics track:@"Install Attributed" properties:[properties copy]];` - [self.analytics track:@"Install Attributed" properties: [properties copy]]; + [self.analytics track:@"GCD-Success" properties: [properties copy]]; } From 82e18c164451096a0d6d4d6f3c9f7c63244f53d2 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 12:07:36 +0300 Subject: [PATCH 15/19] fix test --- SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m b/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m index 1b5a8d5..b83a908 100644 --- a/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m +++ b/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m @@ -431,7 +431,7 @@ - (void)testSEGAppsFlyerIntegration_onConversionDataSuccess_happyflow{ return YES; }]]); OCMStub([SEGAnalyticsMock track:[OCMArg checkWithBlock:^BOOL(id obj) { - XCTAssertTrue([obj isEqual:@"Install Attributed"]); + XCTAssertTrue([obj isEqual:@"GCD_Success"]); return YES; }] properties:[OCMArg checkWithBlock:^BOOL(id obj) { XCTAssertTrue([obj isEqualToDictionary:dictionaryInputToAnalytics]); From 16a35feb0ea053931719cff744de562db2cfa9dd Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 12:11:32 +0300 Subject: [PATCH 16/19] fix some script stuff --- .github/bash_scripts/pre_release.sh | 4 ++-- .github/bash_scripts/release.sh | 2 ++ .github/workflows/prepare-for-release-workflow.yml | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/bash_scripts/pre_release.sh b/.github/bash_scripts/pre_release.sh index a482bb1..70a55b1 100644 --- a/.github/bash_scripts/pre_release.sh +++ b/.github/bash_scripts/pre_release.sh @@ -10,8 +10,8 @@ mv segment-appsflyer-ios.podspec segment-appsflyer-ios-qa.podspec sed -r -i '' "s/(.*AppsFlyerLib.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" Package.swift -sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,:podspec => \'\.\.\/\.\.\/segment-appsflyer-ios.podspec\'/g" examples/SwiftPodsSample/Podfile -sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,:podspec => \'\.\.\/\.\.\/segment-appsflyer-ios.podspec\'/g" examples/ObjcPodsSample/Podfile +sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,\'$rcVersion\'/g" examples/SwiftPodsSample/Podfile +sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*\'[0-9]+\.[0-9]+\.[0-9]+\')/\1,\'$rcVersion\'/g" examples/ObjcPodsSample/Podfile sed -r -i '' "s/(## This is a Segment wrapper for AppsFlyer SDK that is built with iOS SDK v)(.*)/\1$appsflyerLibVersion./g" README.md sed -r -i '' "s/(.*pod \'segment-appsflyer-ios.*)([0-9]+\.[0-9]+\.[0-9]+)(.*)/\1$appsflyerLibVersion\3/g" README.md diff --git a/.github/bash_scripts/release.sh b/.github/bash_scripts/release.sh index a99f077..257fa23 100644 --- a/.github/bash_scripts/release.sh +++ b/.github/bash_scripts/release.sh @@ -3,6 +3,8 @@ releaseVersion=$1 sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+\'/version_plugin = \'$releaseVersion\'/g" segment-appsflyer-ios.podspec +sed -i '' "s/s.name = \"segment-appsflyer-ios-qa\"/s.name = \"segment-appsflyer-ios\"/g" segment-appsflyer-ios.podspec +mv segment-appsflyer-ios-qa.podspec segment-appsflyer-ios.podspec sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*)/\1,\'$releaseVersion\'/g" examples/SwiftPodsSample/Podfile sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*)/\1,\'$releaseVersion\'/g" examples/ObjcPodsSample/Podfile diff --git a/.github/workflows/prepare-for-release-workflow.yml b/.github/workflows/prepare-for-release-workflow.yml index 99bd4bc..935bfae 100644 --- a/.github/workflows/prepare-for-release-workflow.yml +++ b/.github/workflows/prepare-for-release-workflow.yml @@ -6,7 +6,6 @@ on: - opened branches: - 'master' - # - 'dev/add-release-workflow' jobs: Prepare-Plugin-For-Production: From c379782f4bb705acee309d106159b9f2aba11b19 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 12:13:01 +0300 Subject: [PATCH 17/19] fix test #2 --- SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m b/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m index b83a908..104b041 100644 --- a/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m +++ b/SegmentAppsFlyeriOSTests/SEGAppsFlyerIntegrationTests.m @@ -431,7 +431,7 @@ - (void)testSEGAppsFlyerIntegration_onConversionDataSuccess_happyflow{ return YES; }]]); OCMStub([SEGAnalyticsMock track:[OCMArg checkWithBlock:^BOOL(id obj) { - XCTAssertTrue([obj isEqual:@"GCD_Success"]); + XCTAssertTrue([obj isEqual:@"GCD-Success"]); return YES; }] properties:[OCMArg checkWithBlock:^BOOL(id obj) { XCTAssertTrue([obj isEqualToDictionary:dictionaryInputToAnalytics]); From ed2f89ecee968928d5281b21c2581e316ce68cfe Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 12:23:45 +0300 Subject: [PATCH 18/19] . --- .github/bash_scripts/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/bash_scripts/release.sh b/.github/bash_scripts/release.sh index 257fa23..f49c487 100644 --- a/.github/bash_scripts/release.sh +++ b/.github/bash_scripts/release.sh @@ -2,8 +2,8 @@ releaseVersion=$1 -sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+\'/version_plugin = \'$releaseVersion\'/g" segment-appsflyer-ios.podspec -sed -i '' "s/s.name = \"segment-appsflyer-ios-qa\"/s.name = \"segment-appsflyer-ios\"/g" segment-appsflyer-ios.podspec +sed -r -i '' "s/version_plugin = \'[0-9]+\.[0-9]+\.[0-9]+.*\'/version_plugin = \'$releaseVersion\'/g" segment-appsflyer-ios-qa.podspec +sed -i '' "s/s.name = \"segment-appsflyer-ios-qa\"/s.name = \"segment-appsflyer-ios\"/g" segment-appsflyer-ios-qa.podspec mv segment-appsflyer-ios-qa.podspec segment-appsflyer-ios.podspec sed -r -i '' "s/(.*pod \'segment-appsflyer-ios\')(.*)/\1,\'$releaseVersion\'/g" examples/SwiftPodsSample/Podfile From e1fd0acd0f230acd8677abd9d3e1cf9b24c0aa97 Mon Sep 17 00:00:00 2001 From: Moris Gateno Date: Thu, 13 Jun 2024 12:24:36 +0300 Subject: [PATCH 19/19] Commited from github action - prepaing the repo for QA locally. --- Package.swift | 2 +- README.md | 6 +++--- examples/ObjcPodsSample/Podfile | 2 +- examples/SwiftPodsSample/Podfile | 2 +- releasenotes.6.14.4 | 0 ...ppsflyer-ios.podspec => segment-appsflyer-ios-qa.podspec | 6 +++--- segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 releasenotes.6.14.4 rename segment-appsflyer-ios.podspec => segment-appsflyer-ios-qa.podspec (92%) diff --git a/Package.swift b/Package.swift index 93605ce..eb194a1 100644 --- a/Package.swift +++ b/Package.swift @@ -17,7 +17,7 @@ let package = Package( dependencies: [ // Dependencies declare other packages that this package depends on. .package(name: "Segment", url: "https://github.com/segmentio/analytics-ios.git" , from: "4.0.0"), - .package(name: "AppsFlyerLib" , url: "https://github.com/AppsFlyerSDK/AppsFlyerFramework.git", .exact("6.14.3")), + .package(name: "AppsFlyerLib" , url: "https://github.com/AppsFlyerSDK/AppsFlyerFramework.git", .exact("6.14.4")), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/README.md b/README.md index 21b637e..498556a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # AppsFlyer integration for Segment. -## This is a Segment wrapper for AppsFlyer SDK that is built with iOS SDK v6.14.3. +## This is a Segment wrapper for AppsFlyer SDK that is built with iOS SDK v6.14.4. [![Version](https://img.shields.io/badge/cocoapods-compatible-brightgreen?logo=cocoapods&logoColor=green&style=flat)](http://cocoapods.org/pods/segment-appsflyer-ios) [![Carthage compatible](https://img.shields.io/badge/Carthage-not_compatible-C20000.svg?style=flat)](https://github.com/Carthage/Carthage) @@ -49,12 +49,12 @@ To install the segment-appsflyer-ios integration: **Production** version: ```ruby -pod 'segment-appsflyer-ios', '6.14.3' +pod 'segment-appsflyer-ios', '6.14.4' ``` **Strict mode SDK** version: ```ruby -pod 'segment-appsflyer-ios/Strict', '6.14.3' +pod 'segment-appsflyer-ios/Strict', '6.14.4' ``` Use the strict mode SDK to completely remove IDFA collection functionality and AdSupport framework dependencies (for example, when developing apps for kids). diff --git a/examples/ObjcPodsSample/Podfile b/examples/ObjcPodsSample/Podfile index 81db05e..b67fb07 100644 --- a/examples/ObjcPodsSample/Podfile +++ b/examples/ObjcPodsSample/Podfile @@ -6,5 +6,5 @@ target 'ObjcPodsSample' do use_frameworks! # Pods for ObjcPodsSample - pod 'segment-appsflyer-ios','6.14.3' + pod 'segment-appsflyer-ios','6.14.4-rc19' end diff --git a/examples/SwiftPodsSample/Podfile b/examples/SwiftPodsSample/Podfile index 6608823..967a63b 100644 --- a/examples/SwiftPodsSample/Podfile +++ b/examples/SwiftPodsSample/Podfile @@ -6,6 +6,6 @@ target 'SwiftPodsSample' do use_frameworks! # Pods for SwiftPodsSample - pod 'segment-appsflyer-ios','6.14.3' + pod 'segment-appsflyer-ios','6.14.4-rc19' end diff --git a/releasenotes.6.14.4 b/releasenotes.6.14.4 new file mode 100644 index 0000000..e69de29 diff --git a/segment-appsflyer-ios.podspec b/segment-appsflyer-ios-qa.podspec similarity index 92% rename from segment-appsflyer-ios.podspec rename to segment-appsflyer-ios-qa.podspec index 82e228a..ec8064e 100644 --- a/segment-appsflyer-ios.podspec +++ b/segment-appsflyer-ios-qa.podspec @@ -1,8 +1,8 @@ -version_appsflyerLib = '6.14.3' -version_plugin = '6.14.3' +version_appsflyerLib = '6.14.4' +version_plugin = '6.14.4-rc19' Pod::Spec.new do |s| - s.name = "segment-appsflyer-ios" + s.name = "segment-appsflyer-ios-qa" s.version = version_plugin s.summary = "AppsFlyer Integration for Segment's analytics-ios library." diff --git a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m index 5465413..890f137 100644 --- a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m +++ b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m @@ -35,7 +35,7 @@ - (instancetype)initWithSettings:(NSDictionary *)settings withAnalytics:(SEGAnal self.appsflyer = [self appsflyerLib]; [self.appsflyer setPluginInfoWith:AFSDKPluginSegment - pluginVersion:@"6.14.3" + pluginVersion:@"6.14.4" additionalParams:nil]; [self.appsflyer setAppsFlyerDevKey:afDevKey]; [self.appsflyer setAppleAppID:appleAppId]; @@ -93,7 +93,7 @@ - (instancetype)initWithSettings:(NSDictionary *)settings withAppsflyer:(AppsFly self.appsflyer = aAppsflyer; [self.appsflyer setPluginInfoWith:AFSDKPluginSegment - pluginVersion:@"6.14.3" + pluginVersion:@"6.14.4" additionalParams:nil]; NSString *afDevKey = [self.settings objectForKey:@"appsFlyerDevKey"];