adventures-in / chat_app

A group effort to build a chat app and learn as we go.
18 stars 0 forks source link

Android needs keystore to run in debug mode #237

Open nickmeinhold opened 4 years ago

nickmeinhold commented 4 years ago

Describe the bug When building for Android the project needs a keystore, even when running in debug mode.

To Reproduce If someone new follows the steps in the README to set the project up and tries to build for Android.

Expected behavior Use a debug signing config when running in debug mode.

nickmeinhold commented 3 years ago

@tamari-gray I seem to remember you got the chat app running... did you need to stuff around with the build settings and create a new debug build config? If so, would you mind pasting the config here?

tamari-gray commented 3 years ago

sorry cant remember, is this the config you were talking about?

buildTypes { release { signingConfig signingConfigs.release } }

ive got the project open. happy to look through it with you to figure it out :)

nickmeinhold commented 3 years ago

Thanks mate! Yeah that's the one - did we change the release signing config? it was originally:

signingConfigs {
        release {
            Properties keystoreProps = new Properties()
            keystoreProps.load(new FileInputStream(file('keystore.config')))

            keyAlias keystoreProps['keyAlias']
            keyPassword keystoreProps['keyPassword']
            storePassword keystoreProps['storePassword']
            storeFile file('keystore.jks')
        }
    }

I'm free and up for a vid chat if you are 😄 thanks!

nickmeinhold commented 3 years ago

Note: we had a chat just now and: