tapsellorg / TapsellPlusSDK-FlutterPlugin

Other
6 stars 2 forks source link

🐛 [BUG/ERROR]: SignKey issue when using Flutter's example #9

Closed mahdi-malv closed 2 years ago

mahdi-malv commented 2 years ago

Describe the issue:

When building example app, SignKey issues occur

How to reproduce this issue: Run example's release related tasks

mahdi-malv commented 2 years ago

This is not an actual code bug, but a missing private key (sign key)

Short answer:

Replace this:

signingConfigs {
        release {
            if (findProperty("keyStorePath") != null) {
                storeFile file(findProperty("keyStorePath"))
                storePassword findProperty("keyStorePassword")
                keyAlias findProperty("keyAlias")
                keyPassword findProperty("keyPassword")
            } else {
                def keystoreProperties = new Properties()
                keystoreProperties.load(new FileInputStream(rootProject.file('key.properties')))
                keyAlias keystoreProperties['keyAlias']
                keyPassword keystoreProperties['keyPassword']
                storeFile file(keystoreProperties['storeFile'])
                storePassword keystoreProperties['storePassword']
            }
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }

to this:

    buildTypes {
        release {
            signingConfig signingConfigs.debug
        }
    }

Since you're only testing, you don't need a signKey


Actuall answer

keyAlias=signAlias
keyPassword=keyPassword
storeFile=dirToKeyFile
storePassword=storePASSWORD

NOTE: Issue will remain open until next release removes the need for a real signKey in release task since example should not require such thing

UPDATE: 2.1.7 has fixed this