mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-09 20:42:34 +01:00
Make fabric api key public
This commit is contained in:
parent
c2b74571d5
commit
1f6e34c8f7
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,5 +10,3 @@
|
||||
/app/src/main/res/values/strings_facebook.xml
|
||||
/app/src/main/kotlin/com/pitchedapps/frost/facebook/Private.kt
|
||||
*.min.css
|
||||
/app/src/main/res/values/fabric.xml
|
||||
fabric.properties
|
||||
|
@ -2,15 +2,6 @@ apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'io.fabric'
|
||||
|
||||
def FABRIC_API_KEY = System.env.FABRIC_API_KEY
|
||||
if (FABRIC_API_KEY == null) {
|
||||
def fabricProps = new Properties()
|
||||
file("../fabric.properties").withInputStream {
|
||||
stream -> fabricProps.load(stream)
|
||||
}
|
||||
FABRIC_API_KEY = fabricProps.getProperty('FABRIC_API_KEY', 'empty')
|
||||
}
|
||||
println 'Fabric ' + FABRIC_API_KEY
|
||||
android {
|
||||
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
|
||||
buildToolsVersion project.BUILD_TOOLS
|
||||
@ -23,7 +14,6 @@ android {
|
||||
versionName project.VERSION_NAME
|
||||
multiDexEnabled true
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
manifestPlaceholders = [fabricApiKey: FABRIC_API_KEY]
|
||||
}
|
||||
|
||||
applicationVariants.all { variant ->
|
||||
|
@ -106,7 +106,7 @@
|
||||
</receiver>
|
||||
<meta-data
|
||||
android:name="io.fabric.ApiKey"
|
||||
android:value="${fabricApiKey}" />
|
||||
android:value="18b3c223b96b7e7fc1fac372e36b8f4d49a193c7" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
Loading…
Reference in New Issue
Block a user