Skip to content

Commit 15b9031

Browse files
committed
Initial commit
0 parents  commit 15b9031

File tree

236 files changed

+37196
-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.

236 files changed

+37196
-0
lines changed

.fvm/fvm_config.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"flutterSdkVersion": "2.8.1",
3+
"flavors": {}
4+
}

.github/workflows/flutter_build.yml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Flutter build
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags-ignore:
8+
- '*'
9+
10+
jobs:
11+
setupAndTest:
12+
name: Build beta sideload
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Setup Java
21+
uses: actions/setup-java@v2
22+
with:
23+
distribution: 'adopt' # 'temurin' is apparently the new version of this but only adopt is listed as installed on github runners so need to test changing later
24+
java-version: '11'
25+
cache: 'gradle'
26+
check-latest: false
27+
28+
- name: Load Flutter config
29+
uses: kuhnroyal/flutter-fvm-config-action@v1
30+
31+
- name: Setup Flutter
32+
uses: subosito/flutter-action@4f5d1c6d12e14c538d07e4016061fc111101e46f
33+
with:
34+
flutter-version: ${{ env.FLUTTER_VERSION }}
35+
channel: ${{ env.FLUTTER_CHANNEL }}
36+
cache: true
37+
cache-key: flutter # optional, change this to force refresh cache; channel and version are automatically appended
38+
39+
- name: Flutter version
40+
run: flutter --version
41+
42+
- name: Cache pub dependencies
43+
uses: actions/cache@v2
44+
with:
45+
path: ${{ env.PUB_CACHE }}
46+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
47+
restore-keys: ${{ runner.os }}-pub-
48+
49+
- name: Download pub dependencies
50+
run: flutter pub get
51+
52+
# - name: Run build_runner
53+
# run: flutter pub run build_runner build --delete-conflicting-outputs
54+
55+
- name: Run analyzer
56+
run: flutter analyze
57+
58+
- name: Run tests
59+
run: flutter test
60+
61+
- name: Download Android keystore
62+
id: android_keystore
63+
uses: timheuer/[email protected]
64+
with:
65+
fileDir: /home/runner/
66+
fileName: keystore-kv-play.pfx
67+
encodedString: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
68+
69+
- name: Build Android App Bundle
70+
run: flutter build appbundle --dart-define KEEVAULT_STAGE=beta --dart-define KEEVAULT_CHANNEL=sideload

.github/workflows/flutter_release.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Flutter release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
setupAndTest:
9+
name: Build and release Google play to internal channel
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Java
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: 'adopt' # 'temurin' is apparently the new version of this but only adopt is listed as installed on github runners so need to test changing later
21+
java-version: '11'
22+
cache: 'gradle'
23+
check-latest: false
24+
25+
- name: Load Flutter config
26+
uses: kuhnroyal/flutter-fvm-config-action@v1
27+
28+
- name: Setup Flutter
29+
uses: subosito/flutter-action@4f5d1c6d12e14c538d07e4016061fc111101e46f
30+
with:
31+
flutter-version: ${{ env.FLUTTER_VERSION }}
32+
channel: ${{ env.FLUTTER_CHANNEL }}
33+
cache: true
34+
cache-key: flutter # optional, change this to force refresh cache; channel and version are automatically appended
35+
36+
- name: Flutter version
37+
run: flutter --version
38+
39+
- name: Cache pub dependencies
40+
uses: actions/cache@v2
41+
with:
42+
path: ${{ env.PUB_CACHE }}
43+
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
44+
restore-keys: ${{ runner.os }}-pub-
45+
46+
- name: Download pub dependencies
47+
run: flutter pub get
48+
49+
# - name: Run build_runner
50+
# run: flutter pub run build_runner build --delete-conflicting-outputs
51+
52+
- name: Run analyzer
53+
run: flutter analyze
54+
55+
- name: Run tests
56+
run: flutter test
57+
58+
- name: Download Android keystore
59+
id: android_keystore
60+
uses: timheuer/[email protected]
61+
with:
62+
fileDir: /home/runner/
63+
fileName: keystore-kv-play.pfx
64+
encodedString: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
65+
66+
- name: Build Android App Bundle
67+
env:
68+
KEEVAULT_ANDROID_PLAY_KEYSTORE_PASSWORD: ${{ secrets.KEEVAULT_ANDROID_PLAY_KEYSTORE_PASSWORD }}
69+
run: flutter build appbundle --dart-define KEEVAULT_STAGE=prod --dart-define KEEVAULT_CHANNEL=play
70+
71+
- name: Setup Ruby
72+
uses: ruby/setup-ruby@v1
73+
with:
74+
working-directory: ./android
75+
ruby-version: 2.7
76+
bundler: 2.2.26
77+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
78+
79+
- name: Release to Google Play (internal)
80+
env:
81+
KEEVAULT_ANDROID_PLAY_API_KEY_JSON: ${{ secrets.KEEVAULT_ANDROID_PLAY_API_KEY_JSON }}
82+
run: |
83+
cd android
84+
bundle exec fastlane internal

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
**/ios/Flutter/.last_build_id
26+
.dart_tool/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
.packages
30+
.pub-cache/
31+
.pub/
32+
/build/
33+
.gradle/
34+
.fvm/flutter_sdk
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+
# Android Studio will place build artifacts here
46+
/android/app/debug
47+
/android/app/profile
48+
/android/app/release
49+
android/fastlane/report.xml

.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: 022b333a089afb81c471ec43d1f1f4f26305d876
8+
channel: beta
9+
10+
project_type: app

.vscode/launch.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "keevault debug",
6+
"request": "launch",
7+
"type": "dart",
8+
"flutterMode": "debug",
9+
"args": [
10+
"--dart-define",
11+
"KEEVAULT_STAGE=dev",
12+
"--dart-define",
13+
"KEEVAULT_CHANNEL=dev"
14+
]
15+
},
16+
{
17+
"name": "keevault beta debug",
18+
"request": "launch",
19+
"type": "dart",
20+
"flutterMode": "debug",
21+
"args": [
22+
"--dart-define",
23+
"KEEVAULT_STAGE=beta",
24+
"--dart-define",
25+
"KEEVAULT_CHANNEL=dev"
26+
]
27+
},
28+
{
29+
"name": "keevault beta profile",
30+
"request": "launch",
31+
"type": "dart",
32+
"flutterMode": "profile",
33+
"args": [
34+
"--dart-define",
35+
"KEEVAULT_STAGE=beta",
36+
"--dart-define",
37+
"KEEVAULT_CHANNEL=dev"
38+
]
39+
}
40+
]
41+
}

.vscode/settings.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"dart.lineLength": 120,
3+
"[dart]": {
4+
"editor.rulers": [
5+
80,
6+
120
7+
],
8+
},
9+
"cSpell.words": [
10+
"analyzer",
11+
"analyzes",
12+
"applocker",
13+
"Autofilling",
14+
"Autovalidate",
15+
"Behavior",
16+
"bloclistener",
17+
"color",
18+
"Colors",
19+
"Compat",
20+
"creds",
21+
"Derivator",
22+
"derivators",
23+
"Dialog",
24+
"FFTpassword",
25+
"FFTtext",
26+
"FFTusername",
27+
"fluro",
28+
"fromLTRB",
29+
"kdbxstring",
30+
"keepass",
31+
"keevault",
32+
"keevaultpendingautofillassociations",
33+
"keyfile",
34+
"keyvalue",
35+
"oneplus",
36+
"otpauth",
37+
"Parcelable",
38+
"pointycastle",
39+
"quickunlock",
40+
"Rect",
41+
"reemit",
42+
"reenter",
43+
"sipi",
44+
"textfield",
45+
"treeview",
46+
"unfocus",
47+
"Unlocker",
48+
"unprotect",
49+
"yMMMMEEEEd",
50+
"zxcvbn"
51+
],
52+
"cSpell.ignorePaths": [
53+
"**/generated/**",
54+
"phonetic.dart",
55+
".git", // Ignore the .git directory
56+
"*.dll", // Ignore all .dll files.
57+
"**/*.dll" // Ignore all .dll files
58+
],
59+
"dart.flutterSdkPath": ".fvm/flutter_sdk",
60+
// Remove .fvm files from search
61+
"search.exclude": {
62+
"**/.fvm": true
63+
},
64+
// Remove from file watching
65+
"files.watcherExclude": {
66+
"**/.fvm": true
67+
}
68+
}

0 commit comments

Comments
 (0)