Skip to content

Commit be44c32

Browse files
author
russell
committed
New clone
0 parents  commit be44c32

File tree

39 files changed

+2408
-0
lines changed

39 files changed

+2408
-0
lines changed

.github/workflows/main.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: KmmBridge integration test
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: macos-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
14+
- uses: actions/setup-java@v3
15+
with:
16+
distribution: "adopt"
17+
java-version: "11"
18+
19+
# TODO we'll want to be able to specify branch/commit/tag probably. For PoC, just use main.
20+
- name: "Checkout plugin"
21+
uses: actions/checkout@v3
22+
with:
23+
repository: touchlab/kmmbridge
24+
path: build/kmmbridge
25+
26+
- name: Validate Gradle Wrapper
27+
uses: gradle/wrapper-validation-action@v1
28+
with:
29+
min-wrapper-count: 2 # Validating both the local wrapper and the one in the cloned plugin
30+
31+
# Copied from KMMBridgeGithubWorkflow
32+
- name: Apply SSH Key
33+
uses: webfactory/ssh-agent@v0.5.4
34+
with:
35+
ssh-private-key: ${{ secrets.PODSPEC_SSH_KEY }}
36+
37+
# Copied from KMMBridgeGithubWorkflow
38+
- uses: extractions/netrc@v1
39+
with:
40+
machine: api.github.com
41+
username: "cirunner"
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
44+
# Copied from KMMBridgeGithubWorkflow
45+
- name: Cache build tooling
46+
uses: actions/cache@v2
47+
with:
48+
path: |
49+
~/.gradle/caches
50+
~/.konan
51+
key: ${{ runner.os }}-v4-${{ hashFiles('*.gradle.kts') }}
52+
53+
- name: Local publish plugin
54+
run: |
55+
cd build/kmmbridge
56+
./gradlew publishToMavenLocal -PRELEASE_SIGNING_ENABLED=false -PVERSION_NAME=999
57+
58+
# Copied from KMMBridgeGithubWorkflow
59+
- name: Publish shared
60+
run: ./gradlew kmmBridgePublish -PGITHUB_PUBLISH_TOKEN=${{ secrets.GITHUB_TOKEN }} -PGITHUB_REPO=${{ github.repository }} ${{ secrets.gradle_params }} --no-daemon --stacktrace
61+
env:
62+
GRADLE_OPTS: -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m"
63+
64+
# TODO need to verify that we're building against the newly published version
65+
- name: Build SPM Sample
66+
run: |
67+
cd ios-spm
68+
swift package reset
69+
xcodebuild -configuration Debug -scheme KmmBridgeIntegrationTestSpm -sdk iphonesimulator
70+
71+
- name: Build Cocoapods Sample
72+
run: |
73+
cd ios-cocoapods
74+
pod install
75+
xcodebuild -workspace KmmBridgeIntegrationTestCocoapods.xcworkspace -configuration Debug -scheme KmmBridgeIntegrationTestCocoapods -sdk iphonesimulator
76+
77+
78+
79+
80+

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
build
7+
/captures
8+
.externalNativeBuild
9+
.cxx
10+
*.xcuserstate
11+
*.xcbkptlist
12+
xcuserdata/
13+
!/.idea/codeStyles/*
14+
!/.idea/inspectionProfiles/*

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kotlin.code.style=official
2+
android.useAndroidX=true
3+
KMMBRIDGE_VERSION=test

gradle/wrapper/gradle-wrapper.jar

58.4 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

gradlew

Lines changed: 234 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)