Fix Broken sample app (#103)
Summary: With this fix the entire android setup builds with gradle ✨. To try out the sample app, run `./gradlew :sample:installDebug` Closes https://github.com/facebook/Sonar/pull/103 Reviewed By: danielbuechele Differential Revision: D8618622 Pulled By: priteshrnandgaonkar fbshipit-source-id: 62a038f95c37cbadf48636a58ca222c8162e256e
This commit is contained in:
committed by
Facebook Github Bot
parent
cbab597236
commit
64a61a37d4
@@ -61,5 +61,4 @@ dependencies {
|
||||
|
||||
implementation deps.okhttp3
|
||||
implementation project(':android')
|
||||
implementation project(':fbjni')
|
||||
}
|
||||
|
||||
@@ -54,7 +54,10 @@ bool doesGetObjectRefTypeWork() {
|
||||
}
|
||||
|
||||
bool isObjectRefType(jobject reference, jobjectRefType refType) {
|
||||
static bool getObjectRefTypeWorks = doesGetObjectRefTypeWork();
|
||||
|
||||
// TODO Rather than setting it true, use doesGetObjectRefTypeWork(). But it
|
||||
// causes sample app to freeze
|
||||
static bool getObjectRefTypeWorks = true;
|
||||
|
||||
return
|
||||
!reference ||
|
||||
|
||||
Reference in New Issue
Block a user