1. အခြေခံ default Flutter projectတစ်ခုကို ဖန်တီးနည်း
အသေးစိတ်။
- ပထမအဆင့်မှာ, Drive C မှာ New Folder တစ်ခုကို Command Line အသုံးပြုပြီး တည်ဆောက်နည်းနှင့် ရိုးရိုးတည်ဆောက်နည်းနှိုင်းယှဥ်ပုံ
- ဒုတိယအဆင့်, တည်ဆောက်ထားတဲ့ Drive C အောက်ထဲက Folder မှာ flutter ကို command line ဖြင့်စထည့်နည်း
(Tip; ရိုးရိုး flutter project တစ်ခုကို File ကနေတစ်ဆင့် သွားပုံ))
2. package name and application nameတို့ကို rename package သုံးပြုပြီးပြောင်းနည်း
အသေးစိတ်
- ပထမဆုံး, ဒီဝက်ဆိုက် pub.dev official websiteကိုသွားပြီး rename packageအတွက် command line ဖြင့် installပြုလုပ်ခြင်း
- ဒုတိယအနေနဲ့ : Google firebase and Oracle websites တို့တွင် package name ပေးနည်းတို့ကို အနည်းငယ်ရှင်းပြထားခြင်း
- တတိယအဆင့်အနေနဲ့ package name and application name တို့ကို project မှာ ပြောင်းနည်း
Code:
pub global run rename --bundleId com.LinNaingOo.Exercise
pub global run rename --appname "My Exercise"
3. keystore file ကို .jksနဲ့ command line အသုံးပြုပြီး ထုတ်နည်း
Details:
keytool -genkey -v -keystore C:\LinNaingOo\exercise\exercise.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias myexercise
(C:\LinNaingOo\exercise\exercise.jksနေရာမှာ မိမိ၏jks file လိပ်စာကို အစားထိုးထည့်, Alias မှာ မိမိ၏ပေးချင်တဲ့နာမည်ကို ပေး)
(မှတ်ချက်။ ။ တကယ်လို့ errors တွေ တက်ခဲ့ရင် ; terminal မှာ flutter doctor -v ကို ရိုက် ပြီးရင် java binary လိပ်စာကိုယူ ပီးရင် အဲဒီလိပ်စာအနောက်မှာ java ကိုဖြုတ်ထားခဲ့ပြီးတော့ binအထိ run ပီးရင် အပေါ်ကကုတ်ကိုပြန်ထည့်ပီး enter ခေါက် error ဆက်တက်နေရင် ကွန်မန့်မှာ ရေးချထားပေး).
4. SHA1 certificate ကီးကိုထုတ်နည်း
အသေးစိတ်
- SHA1 certificate ကီးကို မထုတ်ခင် official website မှာ signing release file .aab playstoreအတွက် လိုအပ်တဲ့ ကုတ်တွေကို ထပ်ထည့်နည်း
- SHA1 certificate ကီးထည့်နည်းကို တိုက်ရိုက်ကြည့်ချင်ရင် 24:15 မှာ သွားကြည့်နိုင်တယ်
Code:
keytool -list -v -keystore C:\LinNaingOo\exercise\exercise.jks -alias myexercise -storepass 123abcdM-/: -keypass 123abcdM-/:
5. Hash key ကို ထုတ်နည်း
Details:
- ပထမအဆင့်, opensslကို ဒေါင်းလော့ဆွဲပြီး ရလာတဲ့ Drive C အောက်ထဲကိုထည့်မယ် ပီးတော့ bin အထိ လှမ်းခေါ်ပြီးတော့ hash ကီးအတွက် စလုပ်...
ဒေါင်းလော့လင့်...
https://code.google.com/archive/p/openssl-for-windows/downloads?authuser=1
- ဒုတိယအဆင့် HASH key ကုတ်
Code:
keytool -exportcert -alias myexercise -keystore C:\LinNaingOo\exercise\exercise.jks | openssl sha1 -binary | openssl base64
ကျေးဇူးများကြီးတင်ပါတယ်
လေးစားစွာဖြင့်
ကျိုက္ခမီသားလင်းနိုင်ဦး
16-Aug-2022