2021-07-01から1ヶ月間の記事一覧
java.lang.Throwable: Assertion failed: Duplicate bundled template New Kotlin Property Initializer.kt [jar:file:/Applications/Android%20Studio%20Preview.app/Contents/plugins/Kotlin/lib/kotlin-idea.jar!/fileTemplates/code/New Kotlin Property…
purchasesが一番上のコレクションの場合 DocumentId=orderIdにできる サーバ通知(pubsub or iosはonRequest)でFunctionsにアクセスがあった場合は、UIDで判別はできないのでこのやり方が便利 ドキュメントにUIDを持つ必要がある アプリで有料コンテンツにア…
https://developer.android.com/codelabs/basic-android-kotlin-training-intro-room-flow#7 上のページの最後でアプリを起動させることになってるが、起動しない。原因は下記。 github.com なので、次のページのFlowを導入するところまでやり切ってから起動…
garbled characters https://github.com/flutter/flutter/issues/55283 consecutive https://dart.dev/articles/libraries/creating-streams Splits a stream of consecutive strings into lines. decipher https://developer.android.com/codelabs/basic-an…
Adding in-app purchases to your Flutter app | Google Codelabs import * as appleReceiptVerify from "node-apple-receipt-verify"; // Add typings for missing property in library interface. declare module "node-apple-receipt-verify" { interface…
随時追記 esModuleInterop https://www.typescriptlang.org/tsconfig#esModuleInterop Recommended: true Default: false falseの場合これで動く import * as parse from 'csv-parse/lib/sync'; parse(input, { columns: true, // 一行目をフィールドのkeyと…
/** * 親の親がorganizations,親がprojects */ class TeamsRef extends CollectionRef<Team, TeamDoc, TeamRef> { TeamsRef(this.cr) : super(cr); final CollectionReference<Map<String, dynamic>> cr; // 作ってみたもののあんまり意味がない factory TeamsRef.parentDoc(ProjectDoc doc) => TeamsRef(d</map<string,></team,>…
FlutterFireが新しくなったという下記の記事を見てdata bundlesのサンプルを書いてみることにしました。 invertase.io data bundles自体の詳細はこっち Cloud Firestore data bundles | Firebase サンプルを書いてるうちに中身を出力してみたくなりました。 …
Play Billingなどを使う場合は、前もってgoogleアカウントにログインしておく必要があります。 エミュレータを初期化するなどすると消えてしまうのでその度ログインするのは面倒です。 今のところUI Automatorだけ成功 flutter_driverでなんとかする 現状で…
ls | xargs -r -I $ git -C ./$ push origin main push し忘れがないか心配になった時に使う
チュートリアルへの入り口 Android Basics in Kotlin course | Kotlin を用いた Android の基本 we don't recommend working with threads directly. Introduction to coroutines | Android Developers Performance issues, race conditions, and hard to re…
Platform.operatingSystemはエミュレータでは期待通りになるけど、 widget testなどでは、当たり前だけど、テストを実行しているパソコンのOS(windowsとかmac)になる。 Platform.isIOS,Platform.isAndroidなども同様。 さらにテスト時だけ変更したいなんてこ…
### Error LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle, 9): no suitable image found. Did find: /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi_c.bundle: mach-o, but wrong architecture /Library/Ruby/Gems/2.6…
play consoleのリリース前レポートの設定で認証情報にリソースIDを設定するところがあって、 flutterではどうやるんだろうと調べていたら下記のissueに辿り着きました。 github.com 結論としては、できないそうです。
verifyPurchase pluginのreadmeを見ると下記のリンクが貼ってある Fight fraud and abuse | Google Play's billing system で上に書いてあることをそのまま実践しているようなfunctionsのソースが下記にあります。 play-billing-samples/PurchasesManager.ts…
https://pub.dev/packages/hooks_riverpod/versions/1.0.0-dev.2/changelog ConsumerWidgetみたいに、build()の引数が一つ増えてref.watch()にproviderを入れるようです。 理由としては下記のようです。 [RFC] Unifying syntax for listening to providers (…