Skip to content

hndrr/sample_feature_flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sample_feature_flag

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!

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'},
];

slide

Getting Started

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の設定ファイルは含んでいないので 各自firebaseの環境を設定後に GoogleService-Info.plist google-services.json をダウンロードして設定してください

Screen Shot 2021-10-26 at 1 45 38

android

  1. keystore作成
keytool -genkey -v -alias <AliasName> -keystore <Filename>.jks

example: keytool -genkey -v -alias key -keystore key.jks

  1. Rootに作成されたjksファイルを /android/app/ 配下に配置

  2. /android/ 配下に key.properties を作成

  3. propertiesファイルに以下の設定を追記

storePassword=<Password>
keyPassword=<Filename>
keyAlias=<AliasName>
storeFile=./<Filename>.jks
  1. SHA 証明書フィンガープリントをfirebaseプロジェクトに登録 keytool -list -v -keystore ./path/to/<Filename>.jks -alias <AliasName>

example: keytool -list -v -keystore ./android/app/key.jks -alias key

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published