Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,31 @@ jobs:
- name: Run tests
run: flutter test ./test/*

ios-build-spm:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
channel: 'stable'

- name: Install dependencies
run: |
flutter config --enable-swift-package-manager
flutter pub get
cd example
flutter build ios --config-only --no-codesign

- name: Build iOS framework with SPM
run: |
cd example
flutter build ios --simulator

upload-coverage:
runs-on: ubuntu-latest
needs: [flutter-tests]
needs: [flutter-tests, flutter-minimum-version-tests, ios-build-spm]
if: always() && !cancelled() && needs.flutter-tests.result == 'success'
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ build/

# FVM Version Cache
.fvm/
.fvmrc

# Coverage
coverage/
coverage/

.vscode
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ feel free to give the best user eco experience to your final users :)
This feature combines different battery information to determine if the device is in **_eco-mode_** or not.
It will return a boolean.

```
```dart
@override
Stream<bool?> get isBatteryEcoModeStream => CombineLatestStream.list([
_isNotEnoughBatteryStream(),
Expand All @@ -94,7 +94,7 @@ We have created a class **_Connectivity_** which contains basic information abou

And you can use directly the methode **_hasEnoughNetwork_** which follows these rules in the code

```
```dart
extension on Connectivity {
bool? get isEnough => type == ConnectivityType.unknown
? null
Expand Down Expand Up @@ -131,9 +131,5 @@ We are open to any contributions or suggestions. If you have any questions, plea

## License

Copyright © 2024 SNCF Connect & Tech.
Copyright © 2026 SNCF Connect & Tech.
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

***

_This file has been written on February 22, 2024_.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v26.1.0), do not edit directly.
// Autogenerated from Pigeon (v26.1.7), do not edit directly.
// See also: https://pub.dev/packages/pigeon
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")

Expand Down
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*.swp
.DS_Store
.atom/
.build/
.buildlog/
.history
.svn/
.swiftpm/
migrate_working_dir/

# IntelliJ related
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>12.0</string>
<string>13.0</string>
</dict>
</plist>
1 change: 0 additions & 1 deletion example/ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 0 additions & 1 deletion example/ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
44 changes: 0 additions & 44 deletions example/ios/Podfile

This file was deleted.

28 changes: 0 additions & 28 deletions example/ios/Podfile.lock

This file was deleted.

Loading