Skip to content

Commit

Permalink
Migrate gradle to kts (#22)
Browse files Browse the repository at this point in the history
* Migrate gradle to kts

- update kotlin to 1.5.30
- add apple native targets

* Add .circleci/config.yml (#23)

* Bump ci xcode version
  • Loading branch information
evant authored Sep 8, 2021
1 parent 577240a commit 8619bad
Show file tree
Hide file tree
Showing 14 changed files with 408 additions and 436 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
command: sudo apt update && sudo apt install -y libtinfo5
- run:
name: Run Tests
command: ./gradlew test
command: ./gradlew check
- gradle/collect_test_results:
test_results_path: build/test-results
reports_path: build/reports
Expand All @@ -50,7 +50,7 @@ jobs:
".circleci/config.yml" }}-linux
build-macos:
macos:
xcode: "11.7.0"
xcode: "13.0.0"
<<: *defaults
steps:
- checkout
Expand All @@ -63,12 +63,12 @@ jobs:
".circleci/config.yml" }}-macos
- run:
name: Run Tests
command: ./gradlew macosTest iosX64Test
command: ./gradlew nativeTest
- deploy:
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
echo "$MAVEN_CENTRAL_SEC_RING" | base64 -D -o $HOME/secring.gpg
./gradlew publishIosArm64PublicationToMavenRepository publishIosX64PublicationToMavenRepository publishIosX64PublicationToMavenRepository publishMacosPublicationToMavenRepository -Psonatype.username="$SONATYPE_USERNAME" -Psonatype.password="$SONATYPE_PASSWORD" -Psigning.keyId=0E7A8B89 -Psigning.password="$MAVEN_CENTRAL_KEY_PASSPHRASE" -Psigning.secretKeyRingFile=$HOME/secring.gpg -Porg.gradle.parallel=false
./gradlew publishApple -Psonatype.username="$SONATYPE_USERNAME" -Psonatype.password="$SONATYPE_PASSWORD" -Psigning.keyId=0E7A8B89 -Psigning.password="$MAVEN_CENTRAL_KEY_PASSPHRASE" -Psigning.secretKeyRingFile=$HOME/secring.gpg -Porg.gradle.parallel=false
fi
- save_cache:
paths:
Expand Down
239 changes: 0 additions & 239 deletions build.gradle

This file was deleted.

Loading

0 comments on commit 8619bad

Please sign in to comment.