reactormonk
02/14/2023, 3:45 PMreactormonk
02/14/2023, 3:46 PMmoshi.adapter<List<Appointment>>(List::class.java).fromJson(response.bodyString())
^ not doing the trickhumblehacker
02/15/2023, 3:55 AMhfhbd
02/15/2023, 8:48 AMSELECT 'f' as FOO
is equal to SELECT 'a' as FOO
.Daniele B
02/18/2023, 5:05 PMhfhbd
02/18/2023, 5:16 PMDaniele B
02/18/2023, 5:57 PMjw
02/18/2023, 6:00 PMDaniele B
02/18/2023, 6:10 PMDerek Ellis
02/19/2023, 12:31 AMglureau
02/20/2023, 11:12 AMitnoles
02/21/2023, 4:49 AMsaket
02/21/2023, 4:54 AMitnoles
02/21/2023, 4:56 AMjw
02/21/2023, 5:07 AMitnoles
02/21/2023, 5:16 AMMatej Drobnič
02/21/2023, 5:41 AMralf
02/21/2023, 3:38 PMs3rius
02/22/2023, 9:21 PMgetAll
, getById(id)
, deleteById
, etc.
I find myself writing them in the sq files for most tables anyway, and that is copy-pasting I'd like to avoid.
I know this is predicated on some conditions, like having a atomic id
property, etc. But again, I find myself writing tables mostly compatible.Colton Idle
02/23/2023, 7:08 PMTrevor Stone
02/24/2023, 2:19 AMjw
02/24/2023, 2:44 AMTrevor Stone
02/24/2023, 2:56 AMeygraber
02/24/2023, 3:18 AMFlow<Intention>
back to the presenter and used to drive certain state changes (or launch coroutines to do work depending on the intention).
I also have the concept of Effects
which are things that happen as side effects to a screen being opened (logging analytics, etc...).
The issue is that some Effects end up needing interaction with the user. For example, when a certain screen opens, its Effect starts running a migration under certain conditions. However if that migration fails, I show the user a dialog asking if they want to retry it or skip it. That intention feeds back into the Effect determining if the migration should be retried or not.
I've solved that until now by introducing Sources
which are basically shared mutable state between the Effect and the presenter. But after using it for a few weeks the line between Effect and presenter started blurring. Today it came to a head when I needed to do a combine on two flows in the Effect, and found myself wishing that the Effect used Molecule as well, aside from the fact that Molecule doesn't really fit into what an Effect does.
Any suggestions on how to handle this in a Molecule world?Shubham Singh
02/24/2023, 5:41 AM* What went wrong:
Execution failed for task ':shared:verifyCommonMainPTDatabaseMigration'.
> There was a failure while executing work items
> A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
> Error migrating from 1.db, fresh database looks different from migration database:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
/tables[Settings]/columns[Settings.isDarkModeOn]/defaultValue - CHANGED
BEFORE:
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See <https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings>
198 actionable tasks: 198 executed
1
AFTER:
0
/tables[Settings]/definition - CHANGED
BEFORE:
CREATE TABLE Settings(
isDarkModeOn INTEGER DEFAULT 1
)
AFTER:
CREATE TABLE Settings(
isDarkModeOn INTEGER DEFAULT 0
)
This is how my current GitHub workflow looks like:
name: My Deployment Task
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
name: Checking out code...
- uses: actions/setup-java@v3
name: Setting up Java 19 environment...
with:
distribution: 'corretto'
java-version: 19
- name: Building project...
run: ./gradlew build
- name: Assembling Release Bundle...
run: ./gradlew assembleRelease
- uses: r0adkll/sign-android-release@v1
name: Signing APK...
id: signed_apk
with:
releaseDirectory: android/build/outputs/apk/release
signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY_BASE64 }}
alias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- uses: wzieba/Firebase-Distribution-Github-Action@v1
name: Uploading APK to Firebase App Distribution...
with:
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.GC_CREDENTIAL_FILE_CONTENT }}
groups: internal
file: ${{ steps.sign_app.outputs.signed_apk }}
I'm just trying to create a release APK, sign it, and upload it to Firebase App distribution
Any thoughts on what might be going wrong here?Colton Idle
02/24/2023, 8:14 PMjessewilson
02/25/2023, 12:42 AMjessewilson
02/25/2023, 12:42 AMColton Idle
02/25/2023, 6:18 AMColton Idle
02/25/2023, 6:21 AM