Skip to content

Commit 2260502

Browse files
committed
prepare for v1.5.0
1 parent d5659d1 commit 2260502

File tree

99 files changed

+3231
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+3231
-237
lines changed
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Build example
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore: [ '**.md' ]
7+
pull_request:
8+
branches: [ master ]
9+
paths-ignore: [ '**.md' ]
10+
11+
jobs:
12+
build-stable-beta:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
channel: [ 'stable', 'beta' ]
17+
defaults:
18+
run:
19+
working-directory: ./example
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/setup-java@v3
24+
with:
25+
distribution: 'zulu'
26+
java-version: '11'
27+
28+
- uses: subosito/[email protected]
29+
with:
30+
channel: ${{ matrix.channel }}
31+
32+
- name: Print Dart SDK version
33+
run: dart --version
34+
35+
- name: Print Flutter SDK version
36+
run: flutter --version
37+
38+
- name: Install dependencies
39+
run: flutter pub get
40+
41+
- name: Format code
42+
run: flutter format lib --set-exit-if-changed
43+
44+
- name: Analyze
45+
run: flutter analyze lib
46+
47+
- name: Build APK
48+
run: flutter build apk --no-shrink
49+
50+
- name: Upload APK
51+
uses: actions/upload-artifact@v3
52+
if: ${{ matrix.channel == 'stable' }}
53+
with:
54+
name: app
55+
path: example/build/app/outputs/apk/release/app-release.apk
56+
57+
build-old-versions:
58+
runs-on: ubuntu-latest
59+
strategy:
60+
matrix:
61+
version: [ '2.8.1', '2.10.5' ]
62+
defaults:
63+
run:
64+
working-directory: ./example
65+
steps:
66+
- uses: actions/checkout@v3
67+
68+
- uses: actions/setup-java@v3
69+
with:
70+
distribution: 'zulu'
71+
java-version: '11'
72+
73+
- uses: subosito/[email protected]
74+
with:
75+
flutter-version: ${{ matrix.version }}
76+
77+
- name: Print Dart SDK version
78+
run: dart --version
79+
80+
- name: Print Flutter SDK version
81+
run: flutter --version
82+
83+
- name: Install dependencies
84+
run: flutter pub get
85+
86+
- name: Build APK
87+
run: flutter build apk --no-shrink

.github/workflows/dart.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@ name: Tests
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore: [ '**.md' ]
67
pull_request:
78
branches: [ master ]
9+
paths-ignore: [ '**.md' ]
10+
schedule:
11+
# Runs at 02:00 UTC on the 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 and 31th of every month.
12+
- cron: "0 2 */2 * *"
813

914
jobs:
10-
build:
15+
test-stable-beta:
1116
runs-on: ubuntu-latest
12-
17+
strategy:
18+
matrix:
19+
channel: [ 'stable', 'beta' ]
1320
steps:
14-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
1522

16-
- uses: subosito/flutter-action@v1.5.3
23+
- uses: subosito/flutter-action@v2.6.1
1724
with:
18-
channel: 'stable'
25+
channel: ${{ matrix.channel }}
1926

2027
- name: Doctor
2128
run: flutter doctor
@@ -32,5 +39,25 @@ jobs:
3239
- name: Run tests
3340
run: flutter test --coverage --coverage-path=lcov.info
3441

35-
- uses: codecov/[email protected]
42+
- uses: codecov/[email protected]
43+
44+
test-old-versions:
45+
runs-on: ubuntu-latest
46+
strategy:
47+
matrix:
48+
version: [ '2.8.1', '2.10.5' ]
49+
steps:
50+
- uses: actions/checkout@v3
3651

52+
- uses: subosito/[email protected]
53+
with:
54+
flutter-version: ${{ matrix.version }}
55+
56+
- name: Doctor
57+
run: flutter doctor
58+
59+
- name: Install dependencies
60+
run: flutter packages get
61+
62+
- name: Run tests
63+
run: flutter test
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
# push:
5+
# branches: [ master ]
6+
7+
schedule:
8+
# Runs at 01:00 UTC on the 1, 8, 15, 22 and 29th of every month.
9+
- cron: '0 1 */7 * *'
10+
11+
jobs:
12+
remove-old-artifacts:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 10
15+
16+
steps:
17+
- name: Remove old artifacts
18+
uses: c-hive/gha-remove-artifacts@v1
19+
with:
20+
age: '7 days'
21+
skip-tags: true
22+
skip-recent: 5

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 1.5.0 -
2+
3+
* Update dependencies
4+
* `rxdart_ext: ^0.2.5`.
5+
* `disposebag: ^1.5.1`.
6+
7+
* Update `Flutter` constraint to `'>=2.8.0'`.
8+
19
## 1.4.0 - Sep 15, 2021
210

311
* Remove `distinct_value_connectable_stream` dependency.

example/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled and should not be manually edited.
4+
# This file should be version controlled.
55

66
version:
7-
revision: 27321ebbad34b0a3fafe99fac037102196d655ff
7+
revision: f1875d570e39de09040c8f79aa13cc56baab8db1
88
channel: stable
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
17+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
18+
- platform: android
19+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
20+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
21+
- platform: ios
22+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
23+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
24+
- platform: linux
25+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
26+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
27+
- platform: macos
28+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
29+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
30+
- platform: web
31+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
32+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
33+
- platform: windows
34+
create_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
35+
base_revision: f1875d570e39de09040c8f79aa13cc56baab8db1
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/android/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/build.gradle

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,31 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 29
29+
compileSdkVersion flutter.compileSdkVersion
30+
ndkVersion flutter.ndkVersion
3031

31-
sourceSets {
32-
main.java.srcDirs += 'src/main/kotlin'
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '1.8'
3339
}
3440

35-
lintOptions {
36-
disable 'InvalidPackage'
41+
sourceSets {
42+
main.java.srcDirs += 'src/main/kotlin'
3743
}
3844

3945
defaultConfig {
4046
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
41-
applicationId "com.hoc.example"
42-
minSdkVersion 21
43-
targetSdkVersion 29
47+
applicationId "com.hoc081098.stream_loader.example"
48+
// You can update the following values to match your application needs.
49+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50+
minSdkVersion flutter.minSdkVersion
51+
targetSdkVersion flutter.targetSdkVersion
4452
versionCode flutterVersionCode.toInteger()
4553
versionName flutterVersionName
46-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4754
}
4855

4956
buildTypes {
@@ -61,7 +68,4 @@ flutter {
6168

6269
dependencies {
6370
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64-
testImplementation 'junit:junit:4.12'
65-
androidTestImplementation 'androidx.test:runner:1.1.1'
66-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
6771
}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.hoc.example">
3-
<!-- Flutter needs it to communicate with the running application
2+
package="com.hoc081098.stream_loader.example">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
45
to allow setting breakpoints, to provide hot reload, etc.
56
-->
67
<uses-permission android:name="android.permission.INTERNET"/>

example/android/app/src/main/AndroidManifest.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.hoc.example">
3-
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4-
calls FlutterMain.startInitialization(this); in its onCreate method.
5-
In most cases you can leave this as-is, but you if you want to provide
6-
additional functionality it is fine to subclass or reimplement
7-
FlutterApplication and put your custom class here. -->
2+
package="com.hoc081098.stream_loader.example">
3+
4+
<uses-permission android:name="android.permission.INTERNET"/>
5+
86
<application
9-
android:name="io.flutter.app.FlutterApplication"
107
android:label="example"
8+
android:name="${applicationName}"
119
android:icon="@mipmap/ic_launcher">
1210
<activity
1311
android:name=".MainActivity"
12+
android:exported="true"
1413
android:launchMode="singleTop"
1514
android:theme="@style/LaunchTheme"
1615
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1716
android:hardwareAccelerated="true"
1817
android:windowSoftInputMode="adjustResize">
18+
<!-- Specifies an Android theme to apply to this Activity as soon as
19+
the Android process has started. This theme is visible to the user
20+
while the Flutter UI initializes. After that, this theme continues
21+
to determine the Window background behind the Flutter UI. -->
22+
<meta-data
23+
android:name="io.flutter.embedding.android.NormalTheme"
24+
android:resource="@style/NormalTheme"
25+
/>
1926
<intent-filter>
2027
<action android:name="android.intent.action.MAIN"/>
2128
<category android:name="android.intent.category.LAUNCHER"/>

example/android/app/src/main/kotlin/com/hoc/example/MainActivity.kt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)