Skip to content

Commit

Permalink
Merge pull request #8 from Frezyx/dev
Browse files Browse the repository at this point in the history
Try add build for talker_flutter
  • Loading branch information
Frezyx authored Jan 21, 2022
2 parents 5e3fb1d + a825867 commit 8b8d7bf
Show file tree
Hide file tree
Showing 15 changed files with 136 additions and 58 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# # This file was auto-generated by the Firebase CLI
# # https://github.com/firebase/firebase-tools

# name: Deploy to Firebase Hosting on merge
# 'on':
# push:
# branches:
# - master
# jobs:
# build_and_deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: npm ci && npm run build
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TALKER_7AC5E }}'
# channelId: live
# projectId: talker-7ac5e
25 changes: 25 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# # This file was auto-generated by the Firebase CLI
# # https://github.com/firebase/firebase-tools

# name: Deploy to Firebase Hosting on PR
# 'on': pull_request
# jobs:
# defaults:
# run:
# working-directory: talker_flutter

# build_and_preview:
# if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - run: flutter pub get
# - name: Build WEB
# run: |
# cd example
# flutter build web --release --web-renderer canvaskit
# - uses: FirebaseExtended/action-hosting-deploy@v0
# with:
# repoToken: '${{ secrets.GITHUB_TOKEN }}'
# firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TALKER_7AC5E }}'
# projectId: talker-7ac5e
30 changes: 19 additions & 11 deletions .github/workflows/talker_flutter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,23 @@ jobs:

- name: Analyze
run: flutter analyze --fatal-infos --fatal-warnings .

# TODO: enable before release version 1.0.0
# - name: Run Tests

# - name: Build WEB
# run: |
# cd example
# flutter build web --release --web-renderer canvaskit

# - name: Deploy WEB
# run: |
# pub global activate test_coverage
# export PATH=$PATH:$HOME/.pub-cache/bin
# test_coverage
# - name: Check Code Coverage
# uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
# with:
# min_coverage: 30
# path: talker_flutter/coverage/lcov.info
# cd example/build/web
# git init

# git config --global user.email youngfrezyx@gmail.com
# git config --global user.name Stanislav Ilin
# git status

# git remote add origin https://${{secrets.commit_secret}}@github.com/Frezyx/talker.git
# git checkout -b gh-pages
# git add --all
# git commit -m "update"
# git push origin gh-pages -f
3 changes: 3 additions & 0 deletions talker_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.4.0
- Update talker version to 0.5.0

## 0.3.0
- Update all packages to latest version
- Fix UI coloring
Expand Down
36 changes: 36 additions & 0 deletions talker_flutter/example/.firebase/hosting.YnVpbGQvd2Vi.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
favicon.png,1631114968000,fcc7c4545d5b62ad01682589e6fdc7ea03d0a3b42069963c815c344b632eb5cf
manifest.json,1642799826557,940936b6f2d817db103bc29c2a669b35ab347635db434efd70601ab556315f05
index.html,1642800618105,b6767fdcd76fcf9e9e62da809b2255c29b2a6178b02e5dcccccb2548dd1449c5
.git/HEAD,1642800110810,0a82a7459f034a38a724938ef8ab5294be7784a5364b058c89aa3b41697f4874
.git/config,1642800110813,9293b175b921ccc4a4cfc1c245f70600940d48b639a86185201959a7a6acb946
version.json,1642800021972,6a48eca67a3649df826d9d9a0473c37a39a19fb58c1e6751c0136ca40a7efc6d
.git/description,1642800110802,3cdc7b6a29de07f63b76d16b9911d93468000346945f759d4f6456660b5c113b
flutter_service_worker.js,1642800022476,27c2b34f2158680ceba7fef9581dda1eb5961ac3a59aa4d2f6b3d28ec4e1dbad
.git/hooks/commit-msg.sample,1642800110802,4df962ba3955944bec38b211351c73f083d7b0e5360a5d3d76a49548e7314f9e
.git/hooks/pre-commit.sample,1642800110803,ed086bc79b04304e2d3f82ce9bf7d66a9fc1bde08016f694501e8e0d38469505
.git/hooks/post-update.sample,1642800110804,3d5b0c2026371e835c791d4b25099e98b1d507971ed6bfb639ae56a321309aeb
.git/hooks/applypatch-msg.sample,1642800110803,91b94f5feaf0e4d2e6e7808a9188384a4300adf024fa24c48547ee87c64d6558
.git/hooks/fsmonitor-watchman.sample,1642800110803,30f33894d0c667652e1a0c13e1dc5f178eaff6242eea55f686a67d65cbd81bcf
.git/hooks/pre-applypatch.sample,1642800110804,defbdbcdbf096439878474d3b12ed4b5a63dec7400ecde5f4b60a496391d64d0
.git/hooks/pre-merge-commit.sample,1642800110804,0479d217dc6329cbba403c8254db7b9ee6c028f62f55db3641b0690373679b25
.git/hooks/pre-push.sample,1642800110805,8109b3dc5744bb0e115ee8e53ff7a7617ce4396aaa646538e068a6f09338447d
.git/hooks/prepare-commit-msg.sample,1642800110804,9b3c070fc0608b04e690a7dd7c17419759fbed06932985aed32e306418e86ed2
.git/hooks/pre-receive.sample,1642800110803,b703160503002ea73605a1b54a8183989f66e6530c125fbd1595339048ebd856
.git/hooks/pre-rebase.sample,1642800110802,b3f2e1f9de52a3895458d3a6f5e5a1ad139f688bcbc358d6e9d31888f7e84829
.git/hooks/push-to-checkout.sample,1642800110805,ede5681c63b8ad6d42fcae835820651b7dfa044bc14fa0da0b7ce9bc54bd7f18
assets/AssetManifest.json,1642800022058,e1765baf5f9582d7f51cb137538999d143b3054c36c13a0eecaa940b3079e566
.git/info/exclude,1642800110801,a362e375cc3330f10d115cfeb0f90a325219d80a764d57e2c4873f78d1d0b4f5
assets/FontManifest.json,1642800022058,9ea504185602e57d97b7c3517d382b8627a13c0181c490c96a9b55a5d5c8810c
.git/hooks/update.sample,1642800110805,2b0a4f42fa30a128b46ad80e89c1f73b89d58b8abb9e92aee1c35625baccb584
icons/Icon-192.png,1631114968000,d2e0131bb7851eb9d98f7885edb5ae4b4d6b7a6c7addf8a25b9b712b39274c0f
icons/Icon-512.png,1631114968000,7a31ce91e554f1941158ca46f31c7f3f2b7c8c129229ea74a8fae1affe335033
icons/Icon-maskable-192.png,1634469925717,dd96c123fdf6817cdf7e63d9693bcc246bac2e3782a41a6952fa41c0617c5573
icons/Icon-maskable-512.png,1634469925717,e7983524dc70254adc61764657d7e03d19284de8da586b5818d737bc08c6d14e
canvaskit/canvaskit.js,315428400000,332d67a51b86f5129fc7d929d6bb6bd0416b17fd853899efc1f5044770954ed6
canvaskit/profiling/canvaskit.js,315428400000,41ae97b4ac8a386f55b22f1962c7b564da96df256fd938d684e73a8061e70b61
assets/packages/cupertino_icons/assets/CupertinoIcons.ttf,1642063539076,3064af137aeffc9011ba060601a01177b279963822310a778aeafa74c209732c
assets/NOTICES,1642800022058,c6940d1c470cd2ca69eabfa9cb48c32022583c88a3394932fdbaa4d412aba307
assets/fonts/MaterialIcons-Regular.otf,1615596762000,5f71a8843e4edc9656c39061c2232458a6fc77e1603305960e4efa9c77f8b7a2
main.dart.js,1642800021613,0044e7deaa1ece6a64f76845e09d9fe901859eef509cd5415aa59ad595648d1a
canvaskit/canvaskit.wasm,315428400000,8dae2a06cf716711e3578aa55ee7b03ccdc54b4bdc9be9ee50c33515d2b3a7fe
canvaskit/profiling/canvaskit.wasm,315428400000,cb4c2221f1c20811ac3a33666833b4458656193de55b276b3c8fc31856b2f3a0
5 changes: 5 additions & 0 deletions talker_flutter/example/.firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "talker-7ac5e"
}
}
2 changes: 1 addition & 1 deletion talker_flutter/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.talker_flutter.example"
applicationId "com.Frezyx.talker"
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
Expand Down
16 changes: 16 additions & 0 deletions talker_flutter/example/firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
}
6 changes: 3 additions & 3 deletions talker_flutter/example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.talkerflutter.example;
PRODUCT_BUNDLE_IDENTIFIER = com.Frezyx.talker;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -424,7 +424,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.talkerflutter.example;
PRODUCT_BUNDLE_IDENTIFIER = com.Frezyx.talker;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand All @@ -447,7 +447,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.talkerflutter.example;
PRODUCT_BUNDLE_IDENTIFIER = com.Frezyx.talker;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
PRODUCT_NAME = example

// The application's bundle identifier
PRODUCT_BUNDLE_IDENTIFIER = com.example.talkerflutter.example
PRODUCT_BUNDLE_IDENTIFIER = com.Frezyx.talker;

// The copyright displayed in application information
PRODUCT_COPYRIGHT = Copyright © 2022 com.example.talker_flutter. All rights reserved.
2 changes: 1 addition & 1 deletion talker_flutter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.3.0"
version: "0.4.0"
talker_logger:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion talker_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: example
name: talker_example
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
Expand Down
6 changes: 3 additions & 3 deletions talker_flutter/example/web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example",
"short_name": "example",
"name": "talker_example",
"short_name": "talker_example",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
Expand Down Expand Up @@ -32,4 +32,4 @@
"purpose": "maskable"
}
]
}
}
2 changes: 1 addition & 1 deletion talker_flutter/lib/src/extensions/log_level.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension ToColor on LogLevel? {
case LogLevel.warning:
return Colors.orange;
case LogLevel.verbose:
return Colors.yellow;
return Colors.grey[900]!;
case LogLevel.info:
return Colors.blue;
case LogLevel.good:
Expand Down
37 changes: 1 addition & 36 deletions talker_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_flutter
description: Flutter implementation of talker (advanced error handler and logger package).
version: 0.3.0
version: 0.4.0
homepage: https://github.com/Frezyx/talker

environment:
Expand All @@ -24,39 +24,4 @@ dev_dependencies:
sdk: flutter
flutter_lints: ^1.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

# To add assets to your package, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
#
# For details regarding assets in packages, see
# https://flutter.dev/assets-and-images/#from-packages
#
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.

# To add custom fonts to your package, add a fonts section here,
# in this "flutter" section. Each entry in this list should have a
# "family" key with the font family name, and a "fonts" key with a
# list giving the asset and other descriptors for the font. For
# example:
# fonts:
# - family: Schyler
# fonts:
# - asset: fonts/Schyler-Regular.ttf
# - asset: fonts/Schyler-Italic.ttf
# style: italic
# - family: Trajan Pro
# fonts:
# - asset: fonts/TrajanPro.ttf
# - asset: fonts/TrajanPro_Bold.ttf
# weight: 700
#
# For details regarding fonts in packages, see
# https://flutter.dev/custom-fonts/#from-packages

0 comments on commit 8b8d7bf

Please sign in to comment.