Skip to content

Commit

Permalink
Material 3 and workflow files (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik authored Feb 19, 2023
1 parent e307371 commit 2f3c63a
Show file tree
Hide file tree
Showing 67 changed files with 1,831 additions and 523 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: analyze

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: "Run analyze"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: subosito/[email protected]
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Code generation
run: flutter pub run build_runner build -d
- name: Analyze
run: flutter analyze
27 changes: 27 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: github pages

on:
push:
branches:
- main

jobs:
pages:
name: "Deploy on Github Pages"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: subosito/[email protected]
with:
channel: stable
- name: Install dependencies
run: flutter pub get
- name: Code generation
run: flutter pub run build_runner build -d
- name: Build
run: flutter build web
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
publish_dir: ./build/web
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ migrate_working_dir/
.pub/
/build/

# Web related
lib/generated_plugin_registrant.dart

# Symbolication related
app.*.symbols

Expand All @@ -50,5 +47,3 @@ app.*.map.json
*.g.*
*.gen.*
*.freezed.*
**/l10n.dart
**/resources/intl/
40 changes: 0 additions & 40 deletions .metadata

This file was deleted.

11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
# Guess the **WORD** in six tries

[![dart style](https://img.shields.io/badge/style-carapacik__lints%20-brightgreen?logo=dart)](https://pub.dev/packages/carapacik_lints)
[![Analyze](https://github.com/Carapacik/WordlyPlus/actions/workflows/analyze.yml/badge.svg?branch=main)](https://github.com/Carapacik/WordlyPlus/actions/workflows/analyze.yml)
[![Star on Github](https://img.shields.io/github/stars/Carapacik/WordlyPlus?logo=github)](https://github.com/Carapacik/WordlyPlus)
<p align="center"><img src="./assets/images/splash_dark.png" alt="Wordly Plus Logo" width="70%" /></p>

[![Codemagic build status](https://api.codemagic.io/apps/62eec985234279764b041482/62eec985234279764b041481/status_badge.svg)](https://codemagic.io/apps/62eec985234279764b041482/62eec985234279764b041481/latest_build)
[![Style](https://img.shields.io/badge/style-carapacik_lints-40c4ff.svg)](https://github.com/Carapacik/carapacik_lints)
[![Star on Github](https://img.shields.io/github/stars/Carapacik/WordlyPlus.svg?style=flat&logo=github&colorB=deeppink&label=stars)](https://github.com/Carapacik/WordlyPlus)

<a href='https://play.google.com/store/apps/details?id=com.carapacik.wordly'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png' height='90px'/></a>

Have 2 dictionary languages
- RU - [Dictionary scraper](https://github.com/Carapacik/gufo-me-dictionary-scraper)
- EN - [Dictionary scraper](https://github.com/Carapacik/cambridge-dictionary-scraper)

Have 2 game modes:
- Daily
- Daily (default)
- Level


<img src="./.github/readme/1.png" width="40%" /> <img src="./.github/readme/2.png" width="40%" />
<img src="./.github/readme/3.png" width="40%" /> <img src="./.github/readme/4.png" width="40%" />
<img src="./.github/readme/5.png" width="40%" />
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:carapacik_lints/analysis_options.yaml
include: package:carapacik_lints/core.yaml

analyzer:
exclude:
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {

defaultConfig {
applicationId "com.carapacik.wordly"
minSdkVersion 23
minSdkVersion 24
targetSdkVersion 33
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = '1.8.10'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.android.tools.build:gradle:7.4.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
13 changes: 13 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
targets:
$default:
builders:
freezed:
options:
when:
when: false
when_or_null: false
maybe_when: false
json_serializable:
options:
explicit_to_json: true
field_rename: none
1 change: 1 addition & 0 deletions ios/Flutter/Debug.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
1 change: 1 addition & 0 deletions ios/Flutter/Release.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
40 changes: 40 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
platform :ios, '13.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}

def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end

File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
use_frameworks!
use_modular_headers!

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
48 changes: 48 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
PODS:
- Flutter (1.0.0)
- flutter_native_splash (0.0.1):
- Flutter
- path_provider_foundation (0.0.1):
- Flutter
- FlutterMacOS
- share_plus (0.0.1):
- Flutter
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- url_launcher_ios (0.0.1):
- Flutter

DEPENDENCIES:
- Flutter (from `Flutter`)
- flutter_native_splash (from `.symlinks/plugins/flutter_native_splash/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/ios`)
- share_plus (from `.symlinks/plugins/share_plus/ios`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/ios`)
- url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)

EXTERNAL SOURCES:
Flutter:
:path: Flutter
flutter_native_splash:
:path: ".symlinks/plugins/flutter_native_splash/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/ios"
share_plus:
:path: ".symlinks/plugins/share_plus/ios"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/ios"
url_launcher_ios:
:path: ".symlinks/plugins/url_launcher_ios/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef
path_provider_foundation: 37748e03f12783f9de2cb2c4eadfaa25fe6d4852
share_plus: 056a1e8ac890df3e33cb503afffaf1e9b4fbae68
shared_preferences_foundation: 297b3ebca31b34ec92be11acd7fb0ba932c822ca
url_launcher_ios: fb12c43172927bb5cf75aeebd073f883801f1993

PODFILE CHECKSUM: d2243213672c3c48aae53c36642ba411a6be7309

COCOAPODS: 1.11.3
Loading

0 comments on commit 2f3c63a

Please sign in to comment.