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

chore(release): pulling release/1.21.0 into master #397

Merged
merged 4 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build-and-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ on:
types: ['opened', 'reopened', 'synchronize']

jobs:
cancel_previous:
name: 'Cancel previous Code Quality Checks'
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
workflow_id: ${{ github.event.workflow.id }}

build:
name: Code Quality Checks
name: 'Code Quality Checks'
needs: cancel_previous
runs-on: macOS-latest

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-cocoapods.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Deploy to Cocoapods

on:
release:
types: [created]
workflow_run:
workflows: ['Publish new github release']
types: ['completed']

jobs:
build:
name: Deploy to Cocoapods
runs-on: macOS-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout source branch
uses: actions/checkout@v4
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/deploy-private-pod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to Private Pod

on:
pull_request:
branches:
- master
types:
- opened

jobs:
deploy_private_pod:
name: Deploy to Private Pod
runs-on: macOS-latest
if: (startsWith(github.event.client_payload.branch_name, 'release/') || startsWith(github.event.client_payload.branch_name, 'hotfix-release/'))
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ github.event.pull_request.head.ref }}'

- name: Install Cocoapods
run: gem install cocoapods

- name: Add Private Spec Repo to CocoaPods installation
run: |
pod repo add Rudder https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git

- name: Add Podspec to repo
run: |
pod repo push Rudder Rudder.podspec
16 changes: 16 additions & 0 deletions .github/workflows/draft-new-beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,19 @@ jobs:
- name: Push new version in release branch & tag
run: |
git push

- name: Checkout
uses: actions/checkout@v4
with:
ref: '${{ steps.create-release.outputs.branch_name }}'

- name: Install Cocoapods
run: gem install cocoapods

- name: Add Private Spec Repo to CocoaPods installation
run: |
pod repo add Rudder https://${{secrets.PAT_USERNAME}}:${{secrets.PAT}}@github.com/rudderlabs/Specs.git

- name: Add Podspec to repo
run: |
pod repo push Rudder Rudder.podspec
4 changes: 2 additions & 2 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ jobs:
git add README.md Sources/Classes/Headers/RSVersion.h sonar-project.properties
echo ${{ steps.create-release.outputs.new_version }}
echo "commit_summary=$SUMMARY" >> $GITHUB_OUTPUT
npx standard-version -a --skip.tag
npx standard-version -a

- name: Push new version in release branch & tag
run: |
git push
git push --follow-tags

- name: Create pull request into master
uses: repo-sync/pull-request@v2
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/publish-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,13 @@ jobs:
git config user.name "GitHub actions"
git config user.email [email protected]

- name: Create Github Release & Tag
- name: Create Github Release
id: create_release
env:
HUSKY: 0
GITHUB_TOKEN: ${{ secrets.PAT }}
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.PAT }}
run: |
git for-each-ref refs/tags
./Scripts/find-tag.sh ${{ steps.extract-version.outputs.release_version }} && git tag --delete ${{ steps.extract-version.outputs.release_version }} && git push --delete origin ${{ steps.extract-version.outputs.release_version }}
git tag -a v${{ steps.extract-version.outputs.release_version }} -m "chore: release v${{ steps.extract-version.outputs.release_version }}"
git push origin refs/tags/v${{ steps.extract-version.outputs.release_version }}
git for-each-ref refs/tags
DEBUG=conventional-github-releaser npx conventional-github-releaser -p angular --config github-release.config.js

- name: Create pull request into develop
Expand All @@ -60,6 +55,7 @@ jobs:
github_token: ${{ secrets.PAT }}
pr_title: "chore(release): pulling master into develop post release v${{ steps.extract-version.outputs.release_version }}"
pr_body: ':crown: *An automated PR*'
pr_reviewer: 'pallabmaiti'

- name: Delete hotfix release branch
uses: koj-co/delete-merged-action@master
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
name: Notify Slack Channel

on:
release:
types: [created]
workflow_run:
workflows: ['Deploy to Cocoapods']
types: ['completed']

jobs:
deploy-tag:
name: Notify Slack
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Send message to Slack channel
id: slack
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ on:
types: ['opened', 'reopened', 'synchronize']

jobs:
cancel_previous:
name: 'Cancel previous Tests & Coverage'
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
with:
workflow_id: ${{ github.event.workflow.id }}

build:
name: 'Tests & Coverage'
needs: cancel_previous
runs-on: macOS-latest
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.21.0](https://github.com/rudderlabs/rudder-sdk-ios/compare/v1.20.0...v1.21.0) (2023-09-28)


### Features

* improvements of SQLite RETURNING clause ([00e5032](https://github.com/rudderlabs/rudder-sdk-ios/commit/00e5032f68bde1fe171278c979a080a21a8efa12))

## [1.20.0](https://github.com/rudderlabs/rudder-sdk-ios/compare/v1.19.2...v1.20.0) (2023-09-19)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ - (int)key:(const void *)pKey nKey:(int)nKey {
return sqlite3_key(db, pKey, nKey);
}

- (int)last_insert_rowid {
int64_t lastRowId = sqlite3_last_insert_rowid(db);
return (int)lastRowId;
}

@end

@implementation EncryptedDatabaseProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -396,13 +396,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = GTGKNDBD23;
DEVELOPMENT_TEAM = WPX9KRKA8B;
INFOPLIST_FILE = "$(SRCROOT)/RudderSampleAppSwift/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.test.swift;
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.swift;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "RudderSampleAppSwift/RudderSampleAppSwift-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand All @@ -417,13 +417,13 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = GTGKNDBD23;
DEVELOPMENT_TEAM = WPX9KRKA8B;
INFOPLIST_FILE = "$(SRCROOT)/RudderSampleAppSwift/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.test.swift;
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.swift;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "RudderSampleAppSwift/RudderSampleAppSwift-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class EncryptedDatabase: RSDatabase {
func key(_ pKey: UnsafeRawPointer?, nKey: Int32) -> Int32 {
return sqlite3_key(db, pKey, nKey)
}

func last_insert_rowid() -> Int32 {
return Int32(sqlite3_last_insert_rowid(db))
}
}

class EncryptedDatabaseProvider: RSDatabaseProvider {
Expand Down
16 changes: 8 additions & 8 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PODS:
- MetricsReporter (1.1.0):
- RSCrashReporter (~> 1.0.0)
- RudderKit (~> 1.4.0)
- MetricsReporter (1.1.1):
- RSCrashReporter (= 1.0.0)
- RudderKit (= 1.4.0)
- RSCrashReporter (1.0.0)
- Rudder (1.19.2):
- MetricsReporter (= 1.1.0)
- Rudder (1.20.0):
- MetricsReporter (= 1.1.1)
- RudderKit (1.4.0)
- SQLCipher (4.5.4):
- SQLCipher/standard (= 4.5.4)
Expand All @@ -31,12 +31,12 @@ EXTERNAL SOURCES:
:path: "."

SPEC CHECKSUMS:
MetricsReporter: d7f4da199ecceefb2e3a49a0b45b288fbadaca1f
MetricsReporter: d4265e0ac833e2c0078bbe044b3f9dbe29f53a48
RSCrashReporter: 7e26b51ac816e967acb58fa458040946a93a9e65
Rudder: 0c2af547889deaddc88b800d0b04b4ade3fe6ce9
Rudder: d9e8730c891325da05ac4c454db09bc449d3b9ff
RudderKit: d9d6997696e1642b753d8bdf94e57af643a68f03
SQLCipher: 905b145f65f349f26da9e60a19901ad24adcd381

PODFILE CHECKSUM: b6937cee06e0633464427ff0d975d40e17419e9f

COCOAPODS: 1.12.0
COCOAPODS: 1.13.0
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<p align="center">
<a href="https://cocoapods.org/pods/Rudder">
<img src="https://img.shields.io/static/v1?label=pod&message=v1.20.0&color=blue&style=flat">
<img src="https://img.shields.io/static/v1?label=pod&message=v1.21.0&color=blue&style=flat">
</a>
</p>

Expand Down Expand Up @@ -39,15 +39,15 @@ The iOS SDK is available through [**CocoaPods**](https://cocoapods.org), [**Cart
To install the SDK, simply add the following line to your Podfile:

```xcode
pod 'Rudder', '1.20.0'
pod 'Rudder', '1.21.0'
```

### Carthage

For Carthage support, add the following line to your `Cartfile`:

```xcode
github "rudderlabs/rudder-sdk-ios" "v1.20.0"
github "rudderlabs/rudder-sdk-ios" "v1.21.0"
```

> Remember to include the following code in all `.m` and `.h` files where you want to refer to or use the RudderStack SDK classes, as shown:
Expand All @@ -71,7 +71,7 @@ You can also add the RudderStack iOS SDK via Swift Package Mangaer, via one of t

* Enter the package repository (`[email protected]:rudderlabs/rudder-sdk-ios.git`) in the search bar.

* In **Dependency Rule**, select **Up to Next Major Version** and enter `1.20.0` as the value, as shown:
* In **Dependency Rule**, select **Up to Next Major Version** and enter `1.21.0` as the value, as shown:

![Setting dependency](https://user-images.githubusercontent.com/59817155/145574696-8c849749-13e0-40d5-aacb-3fccb5c8e67d.png)

Expand Down Expand Up @@ -99,7 +99,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "[email protected]:rudderlabs/rudder-sdk-ios.git", from: "1.20.0")
.package(url: "[email protected]:rudderlabs/rudder-sdk-ios.git", from: "1.21.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion Rudder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Pod::Spec.new do |s|

s.source_files = 'Sources/**/*.{h,m}'

s.dependency 'MetricsReporter', '1.1.0'
s.dependency 'MetricsReporter', '1.1.1'
end
Loading
Loading