Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flutter] API Keyなどの秘匿情報の管理 #32

Merged
merged 8 commits into from
Feb 14, 2023
Merged

Conversation

LeoAndo
Copy link
Owner

@LeoAndo LeoAndo commented Feb 14, 2023

@LeoAndo LeoAndo self-assigned this Feb 14, 2023
Comment on lines +24 to +26
!.vscode/settings.json
!.vscode/launch.json
!.vscode/extensions.json
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

チーム内で開発環境を統一するために必要なjsonファイルのみgit管理対象にする

"robert-brunhage.flutter-riverpod-snippets", // riverpod
// "alexisvt.flutter-snippets", // flutter widget snippets
]
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://de-milestones.com/vscode-how-to-setup-recommended-tools/
拡張機能を統一させるための設定ファイル

]
}
]
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vscode上で、「実行とデバッグ」をクリックして実行する場合に指定できるビルドタイプの設定ファイル

"editor.wordBasedSuggestions": false,
},
"dart.openDevTools": "flutter",
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Editorの設定やflutter fvmの設定周りの共有用の設定ファイル

"flavor": "development",
"flutterAppName": "(Dev)GithubSearch",
"flutterApplicationIdSuffix": ".development",
"githubAccessToken": "",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

秘匿情報はここの設定値をローカル環境にて各自書き換える。

@@ -14,7 +14,7 @@ final Provider githubApiProvider = Provider<GithubApi>((_) {
});

class GithubApi {
static const _authority = 'api.github.com';
static const _authority = String.fromEnvironment('githubApiDomain');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -10,10 +10,11 @@ import 'package:flutter_github_search/data/api/http_handler.dart';
import 'package:flutter_github_search/domain/exception/api_exceptions.dart';

class GithubApiHttpClient extends http.BaseClient {
// static const String _accessToken = "INPUT HERE TOKEN";
static const String _accessToken =
String.fromEnvironment('githubAccessToken');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

)),
);
}
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

環境変数確認用画面

),
);
}
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package情報確認用画面
application idとかアプリ名とかを環境毎に変えたので。

@@ -213,6 +239,7 @@ class _SearchPagingScreenState extends ConsumerState<SearchPagingScreen> {
}
}
}
// Androidで動作 - END
return false;
},
);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scroll周りのバグ修正

@LeoAndo LeoAndo merged commit 20cdf19 into develop Feb 14, 2023
@LeoAndo LeoAndo deleted the manage_secret_key branch February 14, 2023 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flutter] API Keyなどの秘匿情報の管理
1 participant