Skip to content

Commit 9855c6e

Browse files
committed
initial commit
0 parents  commit 9855c6e

File tree

6,512 files changed

+871695
-0
lines changed

Some content is hidden

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

6,512 files changed

+871695
-0
lines changed

.github/workflows/android-deploy.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
comment:
8+
description: 'Comment'
9+
required: false
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
if: "!contains(github.event.head_commit.message, 'skip ci')"
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/[email protected]
19+
- name: Setup Java
20+
uses: actions/[email protected]
21+
with:
22+
java-version: "8.x"
23+
24+
- name: Setup Flutter
25+
uses: subosito/[email protected]
26+
with:
27+
flutter-version: "1.22.2"
28+
29+
- name: Install Dependencies
30+
run: flutter pub get
31+
- name: Analyze
32+
run: flutter analyze
33+
- name: Tests
34+
run: flutter test
35+
36+
- name: Build Apk
37+
run: flutter build apk --release
38+
39+
- name: Release
40+
uses: ncipollo/release-action@v1
41+
with:
42+
artifacts: "build/app/outputs/apk/release/app-release.apk"
43+
token: ${{ secrets.TOKEN }}
44+
commit: master
45+
tag: v1.0.${{ github.run_number }}

.github/workflows/android-develop.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: dev
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
workflow_dispatch:
8+
comment:
9+
description: 'Comment'
10+
required: false
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
if: "!contains(github.event.head_commit.message, 'skip ci')"
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/[email protected]
20+
- name: Setup Java
21+
uses: actions/[email protected]
22+
with:
23+
java-version: "8.x"
24+
25+
- name: Setup Flutter
26+
uses: subosito/[email protected]
27+
with:
28+
flutter-version: "1.22.2"
29+
30+
- name: Install Dependencies
31+
run: flutter pub get
32+
- name: Analyze
33+
run: flutter analyze
34+
- name: Tests
35+
run: flutter test --coverage
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/[email protected]
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
file: coverage/lcov.info
42+
43+
- name: Build Debug Apk
44+
run: flutter build apk --debug

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
.gradle/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
**/doc/api/
26+
**/ios/Flutter/.last_build_id
27+
.dart_tool/
28+
.flutter-plugins
29+
.flutter-plugins-dependencies
30+
.packages
31+
.pub-cache/
32+
.pub/
33+
/build/
34+
/ios/
35+
36+
# Web related
37+
lib/generated_plugin_registrant.dart
38+
39+
# Symbolication related
40+
app.*.symbols
41+
42+
# Obfuscation related
43+
app.*.map.json
44+
45+
/lib/todo.txt

.metadata

+10
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: 84f3d28555368a70270e9ac8390a9441df95e752
8+
channel: stable
9+
10+
project_type: app

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Jap Vocabs
2+
3+
![deploy](https://github.com/Darklod/jap-vocabs/workflows/deploy/badge.svg?branch=master)
4+
![dev](https://github.com/Darklod/jap-vocabs/workflows/dev/badge.svg?branch=develop)
5+
![codecov](https://codecov.io/gh/Darklod/jap-vocabs/branch/develop/graph/badge.svg?token=C4RT80DY1S)
6+
![Flutter version](https://img.shields.io/badge/flutter-v1.22.0-blue?logo=flutter)
7+
![style: pedantic](https://img.shields.io/badge/style-pedantic-00b4ab.svg)

analysis_options.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: package:pedantic/analysis_options.yaml

android/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
gradle-wrapper.jar
2+
/.gradle
3+
/captures/
4+
/gradlew
5+
/gradlew.bat
6+
/local.properties
7+
GeneratedPluginRegistrant.java
8+
9+
# Remember to never publicly share your keystore.
10+
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
key.properties

android/app/build.gradle

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26+
27+
android {
28+
compileSdkVersion 29
29+
30+
lintOptions {
31+
disable 'InvalidPackage'
32+
}
33+
34+
defaultConfig {
35+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36+
applicationId "com.darklod.jap_vocab"
37+
minSdkVersion 28
38+
targetSdkVersion 29
39+
versionCode flutterVersionCode.toInteger()
40+
versionName flutterVersionName
41+
}
42+
43+
buildTypes {
44+
release {
45+
// TODO: Add your own signing config for the release build.
46+
// Signing with the debug keys for now, so `flutter run --release` works.
47+
signingConfig signingConfigs.debug
48+
}
49+
}
50+
}
51+
52+
flutter {
53+
source '../..'
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.darklod.jap_vocab">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.darklod.jap_vocab">
3+
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
4+
calls FlutterMain.startInitialization(this); in its onCreate method.
5+
In most cases you can leave this as-is, but you if you want to provide
6+
additional functionality it is fine to subclass or reimplement
7+
FlutterApplication and put your custom class here. -->
8+
9+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
10+
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
11+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
12+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
13+
14+
<application
15+
android:name="io.flutter.app.FlutterApplication"
16+
android:label="語彙"
17+
android:icon="@mipmap/ic_launcher">
18+
19+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" />
20+
<receiver android:name="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver">
21+
<intent-filter>
22+
<action android:name="android.intent.action.BOOT_COMPLETED"/>
23+
<action android:name="android.intent.action.MY_PACKAGE_REPLACED"/>
24+
</intent-filter>
25+
</receiver>
26+
27+
<activity
28+
android:name=".MainActivity"
29+
android:launchMode="singleTop"
30+
android:theme="@style/LaunchTheme"
31+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
32+
android:hardwareAccelerated="true"
33+
android:windowSoftInputMode="adjustResize">
34+
<!-- Specifies an Android theme to apply to this Activity as soon as
35+
the Android process has started. This theme is visible to the user
36+
while the Flutter UI initializes. After that, this theme continues
37+
to determine the Window background behind the Flutter UI. -->
38+
<meta-data
39+
android:name="io.flutter.embedding.android.NormalTheme"
40+
android:resource="@style/NormalTheme"
41+
/>
42+
<!-- Displays an Android View that continues showing the launch screen
43+
Drawable until Flutter paints its first frame, then this splash
44+
screen fades out. A splash screen is useful to avoid any visual
45+
gap between the end of Android's launch screen and the painting of
46+
Flutter's first frame. -->
47+
<meta-data
48+
android:name="io.flutter.embedding.android.SplashScreenDrawable"
49+
android:resource="@drawable/launch_background"
50+
/>
51+
<intent-filter>
52+
<action android:name="android.intent.action.MAIN"/>
53+
<category android:name="android.intent.category.LAUNCHER"/>
54+
</intent-filter>
55+
</activity>
56+
<!-- Don't delete the meta-data below.
57+
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
58+
<meta-data
59+
android:name="flutterEmbedding"
60+
android:value="2" />
61+
</application>
62+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.darklod.jap_vocab;
2+
3+
import io.flutter.embedding.android.FlutterActivity;
4+
5+
public class MainActivity extends FlutterActivity {
6+
}
1.55 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?><!-- Modify this file to customize your launch splash screen -->
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:drawable="@color/accent" />
4+
5+
<!-- You can insert your own image assets here -->
6+
<item android:width="128dp"
7+
android:height="128dp"
8+
android:gravity="center">
9+
<bitmap android:gravity="fill"
10+
android:src="@drawable/web_hi_res_512" />
11+
</item>
12+
</layer-list>
Loading
Loading
Loading
Loading
Loading
Loading
Loading

android/app/src/main/res/raw/keep.xml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources xmlns:tools="http://schemas.android.com/tools" tools:keep="@drawable/*" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="accent">#FF2196F3</color>
4+
</resources>
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<!-- Theme applied to the Android Window while the process is starting -->
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<item name="android:windowBackground">@drawable/launch_background</item>
8+
</style>
9+
<!-- Theme applied to the Android Window as soon as the process has started.
10+
This theme determines the color of the Android Window while your
11+
Flutter UI initializes, as well as behind your Flutter UI while its
12+
running.
13+
14+
This Theme is only used starting with V2 of Flutter's Android embedding. -->
15+
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
16+
<item name="android:windowBackground">@android:color/white</item>
17+
</style>
18+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.darklod.jap_vocab">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

android/build.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:3.5.0'
9+
}
10+
}
11+
12+
allprojects {
13+
repositories {
14+
google()
15+
jcenter()
16+
}
17+
}
18+
19+
rootProject.buildDir = '../build'
20+
subprojects {
21+
project.buildDir = "${rootProject.buildDir}/${project.name}"
22+
}
23+
subprojects {
24+
project.evaluationDependsOn(':app')
25+
}
26+
27+
task clean(type: Delete) {
28+
delete rootProject.buildDir
29+
}

android/gradle.properties

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
org.gradle.jvmargs=-Xmx2048m
2+
org.gradle.vfs.watch=true
3+
org.gradle.parallel=true
4+
5+
android.useAndroidX=true
6+
android.enableJetifier=true
7+
android.enableR8=true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Jun 23 08:50:38 CEST 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip

0 commit comments

Comments
 (0)