-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Developer builds crash if Embedded Social API key isn't provided in gradle.properties #943
Comments
I see this error on every fresh install. Steps to reproduce:
Console output:
|
Thanks @cagryInside! I'm re-opening to check it out. |
I suspect this is related to the new version of Gradle that @cagryInside was using in #988. @acrown-msft is seeing if he can repro. He can't repro on the master branch. |
I am able to repro using
|
This must be a bug in gradle. I was able to fix this issue by re-implementing String.IsEmpty(). I used the above version of gradle and changed util/EmbeddedSocialUtils.java:
|
@acrown-msft Wow, strange. Would you mind opening a PR with this workaround? |
Fix #943 - Workaround for String.isEmpty() being broken in newer version of Gradle
…wer versions of Gradle
…wer versions of Gradle
… collection feature Fix OneBusAway#990 - Interpret alert end time of 0 as unending alert Fix OneBusAway#976 Resolve Guava version conflicts in Embedded Social Fix OneBusAway#943 Workaround for String.isEmpty() being broken in newer versions of Gradle WIP Fix OneBusAway#875 - User-travel-behavior - Implement ignore battery optimizations feature User-travel-behavior - Implement storing device information
Summary:
If you don't provide the
EmbeddedSocialApiKey_oba=xxxxxxxxxxxxx
line in yourgradle.properties
file (in the/onebusaway-android
directory), when building, installing, and executing the app you'll see a crash:@acrown-msft I believe this is new behavior with v0.7.3.
Steps to reproduce:
EmbeddedSocialApiKey_oba=xxxxxxxxxxx
line inonebusaway-android/gradle.properties
Expected behavior:
Run without crashing (although Embedded Social features will be hidden)
Observed behavior:
Crash with the above stack trace
Device and Android version:
Samsung Galaxy S8+ with Android 8.0
The text was updated successfully, but these errors were encountered: