-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: kotlin 1.9.22 #56
Changes from all commits
a2beb92
b363d0a
75df5b7
0fee51d
eb9b057
4dd0ed1
3f2c6ac
34b6946
be40928
2a570ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,24 +11,24 @@ env: | |
jobs: | ||
build-smartype: | ||
name: "Build Smartype" | ||
runs-on: macOS-latest | ||
runs-on: macOS-14 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 | ||
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. required for ARM-based runners There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
with: | ||
ruby-version: '3.1.0' | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the update to Gradle 8 as well as Kotlin, as well as latest Android build tools, Java 17 or later is recommended. |
||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Install Cocoapods | ||
run: sudo gem install cocoapods; sudo gem install cocoapods-generate | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '20.x' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also needed for latest mac os There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
- name: Publish all | ||
run: ./gradlew publishToMavenLocal | ||
env: | ||
|
@@ -56,14 +56,14 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '20.x' | ||
- name: pre-create maven dir | ||
run: | | ||
mkdir -p ~/.m2/repository/com/mparticle | ||
|
@@ -102,14 +102,14 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '20.x' | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v2 | ||
- name: pre-create maven dir | ||
|
@@ -144,25 +144,25 @@ jobs: | |
defaults: | ||
run: | ||
working-directory: examples/iosExample | ||
runs-on: macOS-latest | ||
runs-on: macOS-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 | ||
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 | ||
with: | ||
ruby-version: '3.1.0' | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Install Cocoapods | ||
run: sudo gem install cocoapods; sudo gem install cocoapods-generate | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '20.x' | ||
- name: pre-create maven dir | ||
run: | | ||
mkdir -p ~/.m2/repository/com/mparticle | ||
|
@@ -188,26 +188,28 @@ jobs: | |
- name: Run Tests | ||
working-directory: test-json | ||
run: bash run-all-tests.sh --platform=ios --jar=../examples/iosExample/smartype.jar | ||
- name: Build iOS app | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added the actually building of the iOS app, whereas before we were just generating the framework |
||
run: pod update; xcodebuild -workspace SmartypeExample.xcworkspace -scheme SmartypeExample -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' | ||
generate-all: | ||
name: "Generate, All Platforms " | ||
needs: build-smartype | ||
runs-on: macos-latest | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 | ||
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 | ||
with: | ||
ruby-version: '3.1.0' | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
node-version: '20.x' | ||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v2 | ||
- name: Install Cocoapods | ||
|
@@ -236,24 +238,24 @@ jobs: | |
|
||
publish: | ||
name: "Publish" | ||
runs-on: macOS-latest | ||
runs-on: macOS-14 | ||
if: github.ref == 'refs/heads/main' | ||
needs: [build-web-example, build-ios-example, build-android-example, generate-all] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@359bebbc29cbe6c87da6bc9ea3bc930432750108 | ||
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7 | ||
with: | ||
ruby-version: '3.1.0' | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: set up JDK 1.15 | ||
- name: set up JDK 1.17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.15 | ||
java-version: 1.17 | ||
- name: Install Cocoapods | ||
run: sudo gem install cocoapods; sudo gem install cocoapods-generate | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
object versions { | ||
const val kotlin = "1.8.21" | ||
const val kotlin = "1.9.22" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this 1 line is what triggered basically every other line :-) |
||
const val dokka = "1.5.0" | ||
const val spotless = "6.17.0" | ||
const val serialization = "1.5.0" | ||
const val serialization = "1.6.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. critical library we use everywhere, needed for support of latest kotlin |
||
} | ||
|
||
object deps { | ||
object android { | ||
const val gradlePlugin = "com.android.tools.build:gradle:7.1.0" | ||
const val gradlePlugin = "com.android.tools.build:gradle:8.2.2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we were long past due to upgrade, esp to support latest Android build tools/targets |
||
} | ||
object mparticle { | ||
const val androidSdk = "com.mparticle:android-core:5.36.2" | ||
const val androidSdk = "com.mparticle:android-core:5.55.0" | ||
const val webSdk = "@mparticle/web-sdk" | ||
} | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i switched over to cocoapods since Carthage is a dying ecosystem and I was having trouble getting the build working properly with our own Apple SDK & carthage |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
|
||
target 'SmartypeExample' do | ||
# Comment the next line if you don't want to use dynamic frameworks | ||
use_frameworks! | ||
|
||
# Pods for SmartypeExample | ||
pod 'mParticle-Apple-SDK', '~> 8' | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is new on Github - uses ARM machines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/ 👍