-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from LeoAndo/manage_secret_key
[Flutter] API Keyなどの秘匿情報の管理
- Loading branch information
Showing
19 changed files
with
343 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"Dart-Code.flutter", // Flutter support and debugger for Visual Studio Code. | ||
"Dart-Code.dart-code", // Dart | ||
"robert-brunhage.flutter-riverpod-snippets", // riverpod | ||
// "alexisvt.flutter-snippets", // flutter widget snippets | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
// IntelliSense を使用して利用可能な属性を学べます。 | ||
// 既存の属性の説明をホバーして表示します。 | ||
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
// launch.json作成時のテンプレート - START | ||
// "configurations": [ | ||
// { | ||
// "name": "flutter_github_search", | ||
// "request": "launch", | ||
// "type": "dart" | ||
// }, | ||
// { | ||
// "name": "flutter_github_search (profile mode)", | ||
// "request": "launch", | ||
// "type": "dart", | ||
// "flutterMode": "profile" | ||
// }, | ||
// { | ||
// "name": "flutter_github_search (release mode)", | ||
// "request": "launch", | ||
// "type": "dart", | ||
// "flutterMode": "release" | ||
// } | ||
// ] | ||
// launch.json作成時のテンプレート - END | ||
"configurations": [ | ||
{ | ||
"name": "Debug dev", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"args": [ | ||
"--dart-define-from-file=dart_define/development.json" | ||
] | ||
}, | ||
{ | ||
"name": "Debug stg", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"args": [ | ||
"--dart-define-from-file=dart_define/staging.json" | ||
] | ||
}, | ||
{ | ||
"name": "Debug prod", | ||
"request": "launch", | ||
"type": "dart", | ||
"flutterMode": "debug", | ||
"args": [ | ||
"--dart-define-from-file=dart_define/production.json" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
// Flutterプロジェクトのバージョン管理のため、fvmを指定 -START | ||
// https://fvm.app/docs/getting_started/configuration#option-1---automatic-switching-recommended | ||
"dart.flutterSdkPath": ".fvm/flutter_sdk", | ||
// Remove .fvm files from search | ||
"search.exclude": { | ||
"**/.fvm": true | ||
}, | ||
// Remove from file watching | ||
"files.watcherExclude": { | ||
"**/.fvm": true | ||
}, | ||
// Flutterプロジェクトのバージョン管理のため、fvmを指定 -END | ||
"[dart]": { | ||
// Automatically format code on save and during typing of certain characters | ||
// (like `;` and `}`). | ||
"editor.formatOnSave": true, | ||
"editor.formatOnType": true, | ||
// Draw a guide line at 80 characters, where Dart's formatting will wrap code. | ||
"editor.rulers": [ | ||
80 | ||
], | ||
// Disables built-in highlighting of words that match your selection. Without | ||
// this, all instances of the selected text will be highlighted, interfering | ||
// with Dart's ability to highlight only exact references to the selected variable. | ||
"editor.selectionHighlight": false, | ||
// By default, VS Code prevents code completion from popping open when in | ||
// "snippet mode" (editing placeholders in inserted code). Setting this option | ||
// to `false` stops that and allows completion to open as normal, as if you | ||
// weren't in a snippet placeholder. | ||
"editor.suggest.snippetsPreventQuickSuggestions": false, | ||
// By default, VS Code will pre-select the most recently used item from code | ||
// completion. This is usually not the most relevant item. | ||
// | ||
// "first" will always select top item | ||
// "recentlyUsedByPrefix" will filter the recently used items based on the | ||
// text immediately preceding where completion was invoked. | ||
"editor.suggestSelection": "first", | ||
// Allows pressing <TAB> to complete snippets such as `for` even when the | ||
// completion list is not visible. | ||
"editor.tabCompletion": "onlySnippets", | ||
// By default, VS Code will populate code completion with words found in the | ||
// current file when a language service does not provide its own completions. | ||
// This results in code completion suggesting words when editing comments and | ||
// strings. This setting will prevent that. | ||
"editor.wordBasedSuggestions": false, | ||
}, | ||
"dart.openDevTools": "flutter", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"flavor": "development", | ||
"flutterAppName": "(Dev)GithubSearch", | ||
"flutterApplicationIdSuffix": ".development", | ||
"githubAccessToken": "", | ||
"githubApiDomain": "api.github.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"flavor": "production", | ||
"flutterAppName": "GithubSearch", | ||
"flutterApplicationIdSuffix": "", | ||
"githubAccessToken": "", | ||
"githubApiDomain": "api.github.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"flavor": "staging", | ||
"flutterAppName": "(Stg)GithubSearch", | ||
"flutterApplicationIdSuffix": ".staging", | ||
"githubAccessToken": "", | ||
"githubApiDomain": "api.github.com" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
lib/ui/environment_variable/environment_variable_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Flutter imports: | ||
import 'package:flutter/material.dart'; | ||
|
||
class EnvironmentVariableScreen extends StatelessWidget { | ||
const EnvironmentVariableScreen({super.key}); | ||
@override | ||
Widget build(BuildContext context) { | ||
const flavor = String.fromEnvironment('flavor'); | ||
const appName = String.fromEnvironment('flutterAppName'); | ||
const applicationIdSuffix = | ||
String.fromEnvironment('flutterApplicationIdSuffix'); | ||
const githubAccessToken = String.fromEnvironment('githubAccessToken'); | ||
const githubApiDomain = String.fromEnvironment('githubApiDomain'); | ||
return Scaffold( | ||
appBar: AppBar( | ||
title: const Text('Env Variable'), | ||
), | ||
body: SafeArea( | ||
child: SingleChildScrollView( | ||
child: Column( | ||
children: const [ | ||
ListTile( | ||
leading: Text('flavor'), | ||
title: Text(flavor), | ||
), | ||
ListTile( | ||
leading: Text('appName'), | ||
title: Text(appName), | ||
), | ||
ListTile( | ||
leading: Text('applicationIdSuffix'), | ||
title: Text(applicationIdSuffix), | ||
), | ||
ListTile( | ||
leading: Text('githubAccessToken'), | ||
title: Text(githubAccessToken), | ||
), | ||
ListTile( | ||
leading: Text('githubApiDomain'), | ||
title: Text(githubApiDomain), | ||
), | ||
], | ||
), | ||
)), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.