Skip to content

Commit d71d8cc

Browse files
committed
System: update build scripts for Swift 5.4
1 parent 865c53a commit d71d8cc

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.github/workflows/android_x86.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 1.8
16-
- name: Install Swift toolchain 5.0.3
17-
run: wget https://swift.org/builds/swift-5.0.3-release/xcode/swift-5.0.3-RELEASE/swift-5.0.3-RELEASE-osx.pkg;
18-
sudo installer -pkg swift-5.0.3-RELEASE-osx.pkg -target /
16+
- name: Install Swift toolchain 5.4.2
17+
run: wget https://swift.org/builds/swift-5.4.2-release/xcode/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-osx.pkg;
18+
sudo installer -pkg swift-5.4.2-RELEASE-osx.pkg -target /
1919
- name: Install NDK
20-
run: wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
21-
unzip android-ndk-r17c-darwin-x86_64.zip
20+
run: wget https://dl.google.com/android/repository/android-ndk-r21e-darwin-x86_64.zip;
21+
unzip android-ndk-r21e-darwin-x86_64.zip
2222
- name: Install Swift Android Toolchain
2323
run: SWIFT_ANDROID=$(curl --silent "https://api.github.com/repos/readdle/swift-android-toolchain/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/');
2424
wget https://github.com/readdle/swift-android-toolchain/releases/latest/download/swift-android-$SWIFT_ANDROID.zip;
@@ -33,8 +33,8 @@ jobs:
3333
- name: Start Android Emulator
3434
run: $ANDROID_HOME/emulator/emulator -no-window -avd ci-test -noaudio > /dev/null &
3535
- name: Run connected android tests
36-
run: export TOOLCHAINS=org.swift.50320190830a;
37-
export ANDROID_NDK_HOME=$(pwd)/android-ndk-r17c;
36+
run: export TOOLCHAINS=org.swift.540202104261a;
37+
export ANDROID_NDK_HOME=$(pwd)/android-ndk-r21e;
3838
export SWIFT_ANDROID_HOME=$(pwd)/swift-android-current;
3939
export PATH=$ANDROID_NDK_HOME:$PATH;
4040
export PATH=$SWIFT_ANDROID_HOME/bin:$SWIFT_ANDROID_HOME/build-tools/current:$PATH;

.github/workflows/android_x86_64.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 1.8
16-
- name: Install Swift toolchain 5.0.3
17-
run: wget https://swift.org/builds/swift-5.0.3-release/xcode/swift-5.0.3-RELEASE/swift-5.0.3-RELEASE-osx.pkg;
18-
sudo installer -pkg swift-5.0.3-RELEASE-osx.pkg -target /
16+
- name: Install Swift toolchain 5.4.2
17+
run: wget https://swift.org/builds/swift-5.4.2-release/xcode/swift-5.4.2-RELEASE/swift-5.4.2-RELEASE-osx.pkg;
18+
sudo installer -pkg swift-5.4.2-RELEASE-osx.pkg -target /
1919
- name: Install NDK
20-
run: wget https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip;
21-
unzip android-ndk-r17c-darwin-x86_64.zip
20+
run: wget https://dl.google.com/android/repository/android-ndk-r21e-darwin-x86_64.zip;
21+
unzip android-ndk-r21e-darwin-x86_64.zip
2222
- name: Install Swift Android Toolchain
2323
run: SWIFT_ANDROID=$(curl --silent "https://api.github.com/repos/readdle/swift-android-toolchain/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/');
2424
wget https://github.com/readdle/swift-android-toolchain/releases/latest/download/swift-android-$SWIFT_ANDROID.zip;
@@ -33,8 +33,8 @@ jobs:
3333
- name: Start Android Emulator
3434
run: $ANDROID_HOME/emulator/emulator -no-window -avd ci-test -noaudio > /dev/null &
3535
- name: Run connected android tests
36-
run: export TOOLCHAINS=org.swift.50320190830a;
37-
export ANDROID_NDK_HOME=$(pwd)/android-ndk-r17c;
36+
run: export TOOLCHAINS=org.swift.540202104261a;
37+
export ANDROID_NDK_HOME=$(pwd)/android-ndk-r21e;
3838
export SWIFT_ANDROID_HOME=$(pwd)/swift-android-current;
3939
export PATH=$ANDROID_NDK_HOME:$PATH;
4040
export PATH=$SWIFT_ANDROID_HOME/bin:$SWIFT_ANDROID_HOME/build-tools/current:$PATH;

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ buildscript {
1010
}
1111

1212
dependencies {
13-
classpath 'com.android.tools.build:gradle:4.2.0'
14-
classpath "com.readdle.android.swift:gradle:1.3.5"
13+
classpath 'com.android.tools.build:gradle:4.2.2'
14+
classpath "com.readdle.android.swift:gradle:1.4.0"
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1616
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
1717
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'

sample/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ dependencies {
5555
kapt project(':compiler')
5656
implementation project(':library')
5757

58-
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
58+
implementation "androidx.appcompat:appcompat:1.3.1"
59+
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
5960
testImplementation 'junit:junit:4.13.2'
60-
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
61-
androidTestImplementation 'androidx.test:rules:1.3.0'
62-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
61+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
62+
androidTestImplementation 'androidx.test:rules:1.4.0'
63+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
6364
}

0 commit comments

Comments
 (0)