Skip to content

Commit

Permalink
🔀 Merge branch 'master' of https://github.com/Mastersam07/smarty
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastersam07 committed Jul 3, 2023
2 parents 151e4bd + d2d91d5 commit 551905a
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 144 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# name: CI
name: CI

# on:
# push:
# branches: [master, dev]
# pull_request:
# branches: [master, dev]
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]

# jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: subosito/flutter-action@v2
# with:
# channel: "stable"
# - name: Fetch dependencies
# run: flutter packages get
# # - name: Analyze project
# # run: flutter analyze
# - name: Run tests
# run: flutter test --coverage
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage/lcov.info
# token: ${{ secrets.CODECOV_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- name: Fetch dependencies
run: flutter packages get
# - name: Analyze project
# run: flutter analyze
- name: Run tests
run: flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
117 changes: 0 additions & 117 deletions .github/workflows/deploy.yaml

This file was deleted.

117 changes: 117 additions & 0 deletions .github/workflows/deploy.yaml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# name: Codepush Deployment

# on:
# create:
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+([0-9]+)'
# push:
# branches: [master, dev]
# tags:
# - 'v[0-9]+.[0-9]+.[0-9]+([0-9]+)'

# jobs:
# getversion:
# name: Get Version
# runs-on: ubuntu-latest
# outputs:
# target_version: ${{ steps.setoutput.outputs.target_version }}

# steps:

# - name: Get current tag
# id: ctag
# run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

# - uses: jungwinter/split@v2
# id: stag
# with:
# msg: ${{ steps.ctag.outputs.tag }}
# separator: "v"

# - name: Set Output
# id: setoutput
# env:
# TAG_VER: $(cut -d'+' -f1 <<<"${{steps.splittag.outputs._1}}")
# run: |
# echo "::set-output name=target_version::$TAG_VER"

# update-android:
# name: Update Android
# needs: getversion
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2

# - name: Setup shorebird
# run: |
# curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
# echo "${HOME}/shorebird/bin" >> $GITHUB_PATH

# - name: Setup credentials
# run: |
# if [ ! -d "${HOME}/.config/shorebird" ]; then
# echo "Creating dir..."
# mkdir -p "${HOME}/.config/shorebird"
# fi
# cat <<EOF > ${HOME}/.config/shorebird/credentials.json
# {
# "accessToken": {"type": "Bearer", "data": ${{ secrets.OAUTH_ACCESS_TOKEN }}, "expiry": ${{ secrets.EXPIRATION }} },
# "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
# "idToken":"${{ secrets.OAUTH_ID_TOKEN }}",
# "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
# }
# EOF

# # - name: Check if credential exists
# # run: |
# # test -f ${XDG_CONFIG_HOME}/shorebird/credentials.json && echo “FILE exists.” || echo “File does not exist”

# - name: Check dir
# run: |
# cd ${HOME}/.config/shorebird
# ls -a

# - name: Shorebird release
# run: shorebird release android
# working-directory: ./example

# # update-android:
# # name: Update Android
# # needs: getversion
# # runs-on: macos-latest
# # steps:
# # - name: Checkout
# # uses: actions/checkout@v2

# # - name: Setup shorebird
# # run: |
# # curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
# # echo "$HOME/.shorebird/bin" >> $GITHUB_PATH

# # - name: Setup credentials
# # run: |
# # mkdir -p ~/Library/Application\ Support/shorebird
# # cat <<EOF > ~/Library/Application\ Support/shorebird/credentials.json
# # {
# # "accessToken": {"type": "Bearer", "data": ${{ secrets.OAUTH_ACCESS_TOKEN }}, "expiry": ${{ secrets.EXPIRATION }} },
# # "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
# # "idToken":"${{ secrets.OAUTH_ID_TOKEN }}",
# # "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
# # }
# # EOF

# # - name: Check dir
# # run: |
# # cd ~/Library/Application\ Support/shorebird
# # ls -a

# # - name: Shorebird release
# # run: shorebird release android
# # working-directory: ./example

# # # - name: Shorebird patch
# # # run: shorebird patch android --release-version ${{needs.getversion.outputs.target_version}}
# # # working-directory: ./example
# # - name: Git Diff
# # run: git diff --exit-code
45 changes: 45 additions & 0 deletions .github/workflows/nightly_build.yaml.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# name: Nightly Build

# on:
# schedule:
# # - cron: '0 1 * * *' # Run every day at 1 AM UTC
# # - cron: '*/5 1-23 * * *' # Run every 5 minutes from 1 AM to 11 PM UTC
# - cron: '20-55/5 1-23 * * *' # Run every 5 minutes from 1:20 AM UTC

# jobs:
# build:
# runs-on: ubuntu-latest

# steps:
# - name: Check for code changes
# id: code_changes
# uses: actions/checkout@v3
# with:
# fetch-depth: 1

# - name: Setup flutter engine
# uses: subosito/flutter-action@v2
# with:
# channel: "stable"

# - name: Fetch dependencies
# run: flutter packages get

# - name: Run tests
# run: flutter test --coverage

# - name: Determine code changes
# id: determine_changes
# run: |
# if git rev-parse HEAD~1 >/dev/null 2>&1; then
# CHANGES_COUNT=$(git diff --name-only HEAD~1 | wc -l)
# else
# CHANGES_COUNT=$(git ls-files | wc -l)
# fi
# echo "$CHANGES_COUNT number of changes"
# echo "::set-output name=changes::${CHANGES_COUNT}"

# - name: Nightly Build
# if: ${{ steps.determine_changes.outputs.changes > 0 }}
# run: flutter build apk --debug
# working-directory: ./example
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# 🦇🦇 BatTheme

<p align="center">
<a href="https://github.com/mastersam07/smarty" target="_blank">
<img src="./ss/batman.gif" alt="Bat Theme" width="200">
Expand All @@ -11,7 +10,6 @@

A repo showcasing how to work with theme extensions in flutter. For the code guide to the writeup <a href="https://github.com/mastersam07">Dressing your flutter widget with theme extension</a> and also the talk <a href="https://docs.google.com/presentation/d/1FWXvKfj6RJoSvFbdGjpX1EkOZi8zscnPwokh8R8Q3Us/edit?usp=sharing">Dressing your flutter widget with theme extension</a> you could check <a href="https://github.com/mastersam07/bat_theme">here</a>.


This library is an implementation of the design system available here: https://www.figma.com/file/igCMUoRobPORn168iE513B/Smart-hom-app?node-id=505-406

Star⭐ the repo if you like what you see😉.
Expand Down

0 comments on commit 551905a

Please sign in to comment.