Skip to content

Commit 14ebc2a

Browse files
authored
Merge branch 'main' into update-push-docs
2 parents 718964d + e7d74cf commit 14ebc2a

33 files changed

+339
-372
lines changed

.github/workflows/check.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- uses: subosito/flutter-action@v2
1616
with:
17-
flutter-version: '3.0.x'
17+
flutter-version: '3.24'
1818
cache: true
1919

2020
# This step requires fetch of test_integration packages because flutter format and
@@ -25,7 +25,7 @@ jobs:
2525
cd test_integration && flutter pub get
2626
2727
- name: 'Check formatting issues in the code'
28-
run: flutter format --set-exit-if-changed .
28+
run: dart format --set-exit-if-changed .
2929

3030
- name: 'Statically analyze the Dart code for any errors'
3131
run: 'flutter analyze --no-pub .'

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
deployments: write
1111
id-token: write
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

1515
- uses: subosito/flutter-action@v2
1616
with:
17-
flutter-version: '3.0.x'
17+
flutter-version: '3.24'
1818
cache: true
1919

2020
- name: Use Intro Blurb As Homepage

.github/workflows/flutter_example_app.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
ios:
99
runs-on: "macos-latest"
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212

1313
- uses: subosito/flutter-action@v2
1414
with:
15-
flutter-version: "3.0.x"
15+
flutter-version: "3.24"
1616
cache: true
1717

1818
- name: "Build example app for iOS"
@@ -23,16 +23,16 @@ jobs:
2323
android:
2424
runs-on: "ubuntu-latest"
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727

28-
- uses: actions/setup-java@v3
28+
- uses: actions/setup-java@v4
2929
with:
3030
distribution: "temurin"
31-
java-version: "11"
31+
java-version: "17"
3232

3333
- uses: subosito/flutter-action@v2
3434
with:
35-
flutter-version: "3.0.x"
35+
flutter-version: "3.24"
3636
cache: true
3737

3838
- name: "Build example app for Android"

.github/workflows/flutter_integration.yaml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ jobs:
1010
strategy:
1111
matrix:
1212
device: # Device names must be shown in `xcrun simctl list devices`
13-
- 'iPhone 12' # we are not specifying the iOS version as it tends to change
13+
- 'iPhone 15' # we are not specifying the iOS version as it tends to change
1414
fail-fast: false
15-
runs-on: 'macos-11'
15+
runs-on: macos-latest
1616
steps:
1717
- name: 'List Simulators'
1818
run: 'xcrun simctl list devices'
1919

2020
- name: 'Start Simulator'
2121
run: xcrun simctl boot "${{ matrix.device }}"
2222

23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2424

2525
- uses: subosito/flutter-action@v2
2626
with:
27-
flutter-version: '3.0.x'
27+
flutter-version: '3.24'
2828
cache: true
2929

3030
# test_integration package depends on ably_flutter, so before we run integration
@@ -38,24 +38,29 @@ jobs:
3838
cd test_integration && ./run_integration_tests.sh
3939
4040
android:
41+
runs-on: ubuntu-latest
4142
strategy:
4243
matrix:
4344
api-level: [24, 29]
4445
fail-fast: false
45-
46-
runs-on: 'macos-11'
47-
4846
steps:
49-
- uses: actions/checkout@v3
47+
- name: checkout
48+
uses: actions/checkout@v4
5049

51-
- uses: actions/setup-java@v3
50+
- uses: actions/setup-java@v4
5251
with:
53-
distribution: 'corretto'
54-
java-version: '11'
52+
distribution: "temurin"
53+
java-version: "17"
54+
55+
- name: Enable KVM
56+
run: |
57+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
58+
sudo udevadm control --reload-rules
59+
sudo udevadm trigger --name-match=kvm
5560
5661
- uses: subosito/flutter-action@v2
5762
with:
58-
flutter-version: '3.0.x'
63+
flutter-version: '3.24'
5964
cache: true
6065

6166
- name: 'Run Flutter Driver tests'

analysis_options.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ linter:
2424
rules:
2525
- always_declare_return_types
2626
- always_put_required_named_parameters_first
27-
- always_require_non_null_named_parameters
2827
- always_use_package_imports
2928
- avoid_bool_literals_in_conditional_expressions
3029
- avoid_catches_without_on_clauses
@@ -44,8 +43,6 @@ linter:
4443
- avoid_relative_lib_imports
4544
- avoid_renaming_method_parameters
4645
- avoid_return_types_on_setters
47-
- avoid_returning_null
48-
- avoid_returning_null_for_future
4946
- avoid_returning_null_for_void
5047
- avoid_returning_this
5148
- avoid_setters_without_getters
@@ -66,7 +63,6 @@ linter:
6663
- do_not_use_environment
6764
- empty_constructor_bodies
6865
- hash_and_equals
69-
- invariant_booleans
7066
- join_return_with_assignment
7167
- leading_newlines_in_multiline_strings
7268
- lines_longer_than_80_chars

android/build.gradle

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

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.2.0'
11+
classpath 'com.android.tools.build:gradle:7.4.0'
1212
}
1313
}
1414

@@ -33,7 +33,12 @@ dependencies {
3333
}
3434

3535
android {
36-
compileSdkVersion 32
36+
compileSdkVersion 34
37+
38+
// Conditional for compatibility with AGP <4.2.
39+
if (project.android.hasProperty("namespace")) {
40+
namespace 'io.ably.flutter.plugin'
41+
}
3742

3843
// Require Java language level 8 so we can use Method References (used with Lambdas)
3944
compileOptions {
@@ -56,6 +61,9 @@ android {
5661
lintOptions {
5762
disable 'InvalidPackage'
5863
}
64+
buildFeatures {
65+
buildConfig true
66+
}
5967
}
6068

6169
apply from: file("./ably-agent.gradle")
1.75 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

android/gradlew

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac
@@ -205,6 +209,12 @@ set -- \
205209
org.gradle.wrapper.GradleWrapperMain \
206210
"$@"
207211

212+
# Stop when "xargs" is not available.
213+
if ! command -v xargs >/dev/null 2>&1
214+
then
215+
die "xargs is not available"
216+
fi
217+
208218
# Use "xargs" to parse quoted args.
209219
#
210220
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

android/gradlew.bat

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@rem limitations under the License.
1515
@rem
1616

17-
@if "%DEBUG%" == "" @echo off
17+
@if "%DEBUG%"=="" @echo off
1818
@rem ##########################################################################
1919
@rem
2020
@rem Gradle startup script for Windows
@@ -25,7 +25,8 @@
2525
if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
28-
if "%DIRNAME%" == "" set DIRNAME=.
28+
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

@@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4041

4142
set JAVA_EXE=java.exe
4243
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto execute
44+
if %ERRORLEVEL% equ 0 goto execute
4445

4546
echo.
4647
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
7576

7677
:end
7778
@rem End local scope for the variables with windows NT shell
78-
if "%ERRORLEVEL%"=="0" goto mainEnd
79+
if %ERRORLEVEL% equ 0 goto mainEnd
7980

8081
:fail
8182
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
8283
rem the _cmd.exe /c_ return code!
83-
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84-
exit /b 1
84+
set EXIT_CODE=%ERRORLEVEL%
85+
if %EXIT_CODE% equ 0 set EXIT_CODE=1
86+
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87+
exit /b %EXIT_CODE%
8588

8689
:mainEnd
8790
if "%OS%"=="Windows_NT" endlocal

0 commit comments

Comments
 (0)