Skip to content

Commit cc4b64b

Browse files
committed
Only disable Facebook app logging for debug builds
Signed-off-by: Alex Saveau <[email protected]>
1 parent f501d20 commit cc4b64b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

auth/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,15 @@ android {
1515

1616
buildTypes {
1717
release {
18+
manifestPlaceholders = [enableFbLogging: true]
19+
1820
minifyEnabled false
1921
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2022
}
23+
24+
debug {
25+
manifestPlaceholders = [enableFbLogging: false]
26+
}
2127
}
2228

2329
testOptions {

auth/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
<meta-data
2323
android:name="com.facebook.sdk.AutoLogAppEventsEnabled"
24-
android:value="false"/>
24+
android:value="${enableFbLogging}"/>
2525

2626
<activity
2727
android:name=".KickoffActivity"

0 commit comments

Comments
 (0)