-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI and resolve some lints and fix tests (#433)
* ci: Add CI * chore: Resolve lint * fix: Tests
- Loading branch information
Showing
5 changed files
with
65 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: flutter_native_splash | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
push: | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/flutter-action@v2 | ||
- name: Install Dependencies | ||
run: flutter packages get | ||
- name: Format | ||
run: flutter format . --set-exit-if-changed | ||
- name: Analyze | ||
run: flutter analyze . | ||
- name: Test | ||
run: flutter test --test-randomize-ordering-seed random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ final List<_IosLaunchImageTemplate> _iOSSplashImages = | |
), // original image must be @4x | ||
]; | ||
|
||
final List<_IosLaunchImageTemplate> iOSSplashImagesDark = | ||
final List<_IosLaunchImageTemplate> _iOSSplashImagesDark = | ||
<_IosLaunchImageTemplate>[ | ||
_IosLaunchImageTemplate(fileName: 'LaunchImageDark.png', pixelDensity: 1), | ||
_IosLaunchImageTemplate(fileName: '[email protected]', pixelDensity: 2), | ||
|
@@ -36,7 +36,7 @@ final List<_IosLaunchImageTemplate> _iOSBrandingImages = | |
pixelDensity: 3, | ||
), // original image must be @4x | ||
]; | ||
final List<_IosLaunchImageTemplate> iOSBrandingImagesDark = | ||
final List<_IosLaunchImageTemplate> _iOSBrandingImagesDark = | ||
<_IosLaunchImageTemplate>[ | ||
_IosLaunchImageTemplate(fileName: 'BrandingImageDark.png', pixelDensity: 1), | ||
_IosLaunchImageTemplate( | ||
|
@@ -81,10 +81,10 @@ void _createiOSSplash({ | |
_applyImageiOS( | ||
imagePath: darkImagePath, | ||
dark: true, | ||
list: iOSSplashImagesDark, | ||
list: _iOSSplashImagesDark, | ||
); | ||
} else { | ||
for (final template in iOSSplashImagesDark) { | ||
for (final template in _iOSSplashImagesDark) { | ||
final file = | ||
File(_flavorHelper.iOSAssetsLaunchImageFolder + template.fileName); | ||
if (file.existsSync()) file.deleteSync(); | ||
|
@@ -107,11 +107,11 @@ void _createiOSSplash({ | |
_applyImageiOS( | ||
imagePath: brandingDarkImagePath, | ||
dark: true, | ||
list: iOSBrandingImagesDark, | ||
list: _iOSBrandingImagesDark, | ||
targetPath: _flavorHelper.iOSAssetsBrandingImageFolder, | ||
); | ||
} else { | ||
for (final template in iOSBrandingImagesDark) { | ||
for (final template in _iOSBrandingImagesDark) { | ||
final file = | ||
File(_flavorHelper.iOSAssetsBrandingImageFolder + template.fileName); | ||
if (file.existsSync()) file.deleteSync(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters