Skip to content

Commit 23ff130

Browse files
Add internal edited stacked_themes package
1 parent c092b8e commit 23ff130

106 files changed

Lines changed: 4152 additions & 2 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
migrate_working_dir/
1313
assets/bibles/.temp/*.ESFM
1414

15-
stacked_themes
16-
1715
# IntelliJ related
1816
*.iml
1917
*.ipr
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release Package
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
9+
jobs:
10+
package_and_publish:
11+
name: Package and Publish
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
token: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
17+
- uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
- run: flutter pub get
21+
- name: release
22+
uses: cycjimmy/semantic-release-action@v3
23+
with:
24+
extra_plugins: |
25+
@semantic-release/exec
26+
@semantic-release/git
27+
@semantic-release/changelog
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.REPO_DEPLOYMENT_TOKEN }}
30+
CREDENTIALS: ${{ secrets.PUB_DEV_DEPLOYMENT_CREDENTIALS }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test Package
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
workflow_dispatch:
8+
9+
jobs:
10+
lint_and_test:
11+
name: Linting and Testing
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
submodules: true
17+
- uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
- run: flutter pub get
21+
- run: dart format --fix --set-exit-if-changed .
22+
- run: flutter analyze
23+
- run: flutter test --coverage
24+
- name: Setup LCOV
25+
uses: hrishikesh-kadam/setup-lcov@v1
26+
- name: Report code coverage
27+
uses: zgosalvez/github-actions-report-lcov@v3
28+
with:
29+
coverage-files: coverage/lcov*.info
30+
artifact-name: code-coverage-report
31+
github-token: ${{ secrets.GITHUB_TOKEN }}
32+
update-comment: true

stacked_themes/.gitignore

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
**/doc/api/
25+
.dart_tool/
26+
.flutter-plugins
27+
.flutter-plugins-dependencies
28+
.packages
29+
.pub-cache/
30+
.pub/
31+
build/
32+
pubspec.lock
33+
34+
# Android related
35+
**/android/**/gradle-wrapper.jar
36+
**/android/.gradle
37+
**/android/captures/
38+
**/android/gradlew
39+
**/android/gradlew.bat
40+
**/android/local.properties
41+
**/android/**/GeneratedPluginRegistrant.java
42+
43+
# iOS/XCode related
44+
**/ios/**/*.mode1v3
45+
**/ios/**/*.mode2v3
46+
**/ios/**/*.moved-aside
47+
**/ios/**/*.pbxuser
48+
**/ios/**/*.perspectivev3
49+
**/ios/**/*sync/
50+
**/ios/**/.sconsign.dblite
51+
**/ios/**/.tags*
52+
**/ios/**/.vagrant/
53+
**/ios/**/DerivedData/
54+
**/ios/**/Icon?
55+
**/ios/**/Pods/
56+
**/ios/**/.symlinks/
57+
**/ios/**/profile
58+
**/ios/**/xcuserdata
59+
**/ios/.generated/
60+
**/ios/Flutter/App.framework
61+
**/ios/Flutter/Flutter.framework
62+
**/ios/Flutter/Flutter.podspec
63+
**/ios/Flutter/Generated.xcconfig
64+
**/ios/Flutter/app.flx
65+
**/ios/Flutter/app.zip
66+
**/ios/Flutter/flutter_assets/
67+
**/ios/Flutter/flutter_export_environment.sh
68+
**/ios/ServiceDefinitions.json
69+
**/ios/Runner/GeneratedPluginRegistrant.*
70+
71+
# Exceptions to above rules.
72+
!**/ios/**/default.mode1v3
73+
!**/ios/**/default.mode2v3
74+
!**/ios/**/default.pbxuser
75+
!**/ios/**/default.perspectivev3
76+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

stacked_themes/.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 8af6b2f038c1172e61d418869363a28dffec3cb4
8+
channel: stable
9+
10+
project_type: package

stacked_themes/.releaserc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://json.schemastore.org/semantic-release",
3+
"branches": [
4+
"main",
5+
{
6+
"name": "next",
7+
"prerelease": "pre"
8+
}
9+
],
10+
"plugins": [
11+
"@semantic-release/commit-analyzer",
12+
"@semantic-release/release-notes-generator",
13+
"@semantic-release/changelog",
14+
[
15+
"@semantic-release/exec",
16+
{
17+
"verifyConditionsCmd": "if [ -z \"$CREDENTIALS\" ]; then exit 1; fi && mkdir -p ~/.config/dart && echo \"$CREDENTIALS\" > ~/.config/dart/pub-credentials.json",
18+
"prepareCmd": "sed -i 's/^version: .*$/version: ${nextRelease.version}/' pubspec.yaml",
19+
"publishCmd": "flutter pub publish -f"
20+
}
21+
],
22+
[
23+
"@semantic-release/git",
24+
{
25+
"assets": ["./CHANGELOG.md", "./pubspec.yaml"]
26+
}
27+
],
28+
"@semantic-release/github"
29+
]
30+
}

stacked_themes/CHANGELOG.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
## [0.3.13](https://github.com/Stacked-Org/themes/compare/v0.3.12...v0.3.13) (2024-07-11)
2+
3+
4+
### Bug Fixes
5+
6+
* remove readme text to trigger push lol ([#16](https://github.com/Stacked-Org/themes/issues/16)) ([35c14a6](https://github.com/Stacked-Org/themes/commit/35c14a6ac7433146a7cfd94a4676c0987d491e44))
7+
8+
## [0.3.12](https://github.com/Stacked-Org/themes/compare/v0.3.11...v0.3.12) (2023-07-04)
9+
10+
11+
### Bug Fixes
12+
13+
* replace deprecated properties and update example app ([#11](https://github.com/Stacked-Org/themes/issues/11)) ([cacc395](https://github.com/Stacked-Org/themes/commit/cacc3958a42295ec3ef3c1dcd43597cb1d5634bd))
14+
15+
## [0.3.11](https://github.com/Stacked-Org/themes/compare/v0.3.10...v0.3.11) (2023-05-21)
16+
17+
18+
### Bug Fixes
19+
20+
* CI issue for release ([b701073](https://github.com/Stacked-Org/themes/commit/b701073b0e20bbbdf66fb7149450504e21c7eafc))
21+
* stacked_core replaced by stacked_shared ([#9](https://github.com/Stacked-Org/themes/issues/9)) ([3bb17e9](https://github.com/Stacked-Org/themes/commit/3bb17e91cbeae3a64043684777c4103ac3c77133))
22+
23+
## [0.3.10](https://github.com/Stacked-Org/themes/compare/v0.3.9...v0.3.10) (2023-03-16)
24+
25+
26+
### Bug Fixes
27+
28+
* **deps:** update dependency flutter_statusbarcolor_ns to ^0.5.0 ([#3](https://github.com/Stacked-Org/themes/issues/3)) ([341a3b1](https://github.com/Stacked-Org/themes/commit/341a3b1d4067e4178f94a3b187ff524bf127521e))
29+
30+
## 0.3.9
31+
- Flutter 3.0 compatibility
32+
33+
## 0.3.8+2
34+
35+
- Updates Example's kotlin version to 1.4.10
36+
- Updates Example's Android Embedding to Version 2
37+
- Updates Example's CompileSdk to 31
38+
39+
## 0.3.8+1
40+
41+
- bumps versions of provider and and status bar package
42+
43+
## 0.3.8
44+
45+
- Adds `navigationBarColorBuilder` to change navigation bar color
46+
47+
## 0.3.7
48+
49+
- Fixed `flutter_statusbarcolor_ns` deprecated Android embedding warning
50+
51+
## 0.3.6
52+
53+
- Replaced `dart:io` with `universal_io`
54+
55+
## 0.3.5
56+
57+
- Fixed `PlatformService` registration issue
58+
59+
## 0.3.4
60+
61+
- Fixed Expception being thrown for non-Android and non-iOS platform
62+
63+
## 0.3.3
64+
65+
- Updated dependencies:
66+
67+
- rxdart: ^0.26.0 -> ^0.27.1
68+
- shared_preferences: ^2.0.4 -> ^2.0.6
69+
- get_it: ^6.0.0 -> ^7.1.3
70+
- mockito: ^5.0.0-nullsafety.7 -> ^5.0.9
71+
72+
## 0.3.2
73+
74+
- Makes `ThemeService.getInstance` non-nullable since we'll always construct a theme service in there if null
75+
76+
## 0.3.1
77+
78+
- Adds a `selectedThemeIndex` property to ThemeManager for getting currently enabled theme.
79+
80+
## 0.3.0
81+
82+
- Updates the package to null-safety
83+
84+
## 0.2.4
85+
86+
- provider: ^4.3.3 -> ^5.0.0
87+
- rxdart: ^0.25.0 -> ^0.26.0
88+
- shared_preferences: ^0.5.12+4 -> ^2.0.4
89+
- get_it: ^5.0.6 -> ^6.0.0
90+
91+
## 0.2.3
92+
93+
- Use get_it newInstance to avoid clashing with the app
94+
95+
## 0.2.2+2
96+
97+
- Updates packages to the latest
98+
99+
## 0.2.2+1
100+
101+
- Updates get it to latest
102+
103+
## 0.2.2
104+
105+
- Re-apply system ThemeMode when we get back from background
106+
107+
## 0.2.1+1
108+
109+
- Fixes bad push
110+
111+
## 0.2.1
112+
113+
- Exposes `ThemeManagerMode` on the `ThemeService` and `ThemeMode` on the `ThemeManager`.
114+
115+
## 0.2.0
116+
117+
- Adds functionality for setting the `ThemeMode` directly using `setThemeMode` function on the `ThemeManager`
118+
119+
## 0.1.0+1
120+
121+
- Adds missing parameter in theme mode
122+
123+
## 0.1.0
124+
125+
- Initial release of Themes functionality

0 commit comments

Comments
 (0)