Here is an example of Firebase Remote Config in Flutter
This app is a joke application that mimics an e-commerce site that I created to explain the remote configuration feature of Firebase!
- https://firebase.google.com/docs/remote-config
- https://pub.dev/packages/firebase_remote_config
- https://firebase.flutter.dev/docs/remote-config/overview/
jsonItemList = [
{'id': '1a', 'emoji': '💻', 'title': 'Macbook Pro', 'price': '240000'},
{'id': '1b', 'emoji': '🎮', 'title': 'Switch', 'price': '38000'},
{'id': '1c', 'emoji': '💿', 'title': 'CD', 'price': '3000'},
{'id': '1d', 'emoji': '🍛', 'title': 'カレー', 'price': '800'},
{'id': '1e', 'emoji': '🍣', 'title': '寿司', 'price': '4000'},
{'id': '1f', 'emoji': '🍜', 'title': 'ラーメン', 'price': '1000'},
{'id': '1g', 'emoji': '🍔', 'title': 'ハンバーガー', 'price': '300'},
{'id': '1h', 'emoji': '🥩', 'title': '肉', 'price': '4000'},
{'id': '1i', 'emoji': '🐟', 'title': '魚', 'price': '300'},
{'id': '1j', 'emoji': '😄', 'title': 'スマイル', 'price': '0'},
];
- https://docs.google.com/presentation/d/1Rzf1i6Kq5FWtlaGwG-ISVz_R0WYHZeozOT2sjyphtTc/edit?usp=sharing
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
firebaseの設定ファイルは含んでいないので
各自firebaseの環境を設定後に GoogleService-Info.plist
google-services.json
をダウンロードして設定してください
- https://firebase.google.com/docs/flutter/setup?hl=ja&platform=ios
- https://firebase.google.com/docs/flutter/setup?hl=ja&platform=android
- keystore作成
keytool -genkey -v -alias <AliasName> -keystore <Filename>.jks
example: keytool -genkey -v -alias key -keystore key.jks
-
Rootに作成されたjksファイルを
/android/app/
配下に配置 -
/android/
配下にkey.properties
を作成 -
propertiesファイルに以下の設定を追記
storePassword=<Password>
keyPassword=<Filename>
keyAlias=<AliasName>
storeFile=./<Filename>.jks
- SHA 証明書フィンガープリントをfirebaseプロジェクトに登録
keytool -list -v -keystore ./path/to/<Filename>.jks -alias <AliasName>
example: keytool -list -v -keystore ./android/app/key.jks -alias key