Permalink
Browse files

Adds HyperTrack Publishable Key in gradle.properties file

  • Loading branch information...
1 parent 45afb67 commit af6427881707bd9567868cd48539115d27d6b4ff @piyushgupta27 piyushgupta27 committed May 12, 2017
Showing with 10 additions and 22 deletions.
  1. +0 −1 .gitignore
  2. +8 −19 app/build.gradle
  3. +1 −0 gradle.properties
  4. +1 −0 hypertrack.properties
  5. +0 −2 hypertrackkey.properties
View
@@ -91,4 +91,3 @@ crashlytics-build.properties
.DS_store
app/src/main/java/io/hypertrack/sendeta/SearchView/
app/src/main/java/io/hypertrack/sendeta/autocompleteplace/
-/hypertrackkey.properties
View
@@ -1,20 +1,13 @@
buildscript {
repositories {
- maven { url 'https://jitpack.io' }
mavenCentral()
}
-
- dependencies {
- classpath 'com.github.Mindera:gradle-slack-plugin:1.0.4'
- }
}
apply plugin: 'com.android.application'
-apply plugin: 'com.mindera.gradle.slack'
-apply plugin: 'realm-android'
repositories {
- // HyperTrack Repository
+ // HyperTrack SDK Repository
maven { url 'http://hypertrack-android-sdk.s3-website-us-west-2.amazonaws.com/' }
}
@@ -25,9 +18,9 @@ android {
abortOnError false
}
- def hyperTrackKeyPropertiesFile = rootProject.file("hypertrackkey.properties");
- def hyperTrackKeyProperties = new Properties()
- hyperTrackKeyProperties.load(new FileInputStream(hyperTrackKeyPropertiesFile))
+ def gradlePropertiesFile = rootProject.file("gradle.properties");
+ def gradleProperties = new Properties()
+ gradleProperties.load(new FileInputStream(gradlePropertiesFile))
defaultConfig {
applicationId "io.hypertrack.sendeta"
@@ -36,8 +29,8 @@ android {
minSdkVersion 19
targetSdkVersion 25
resValue "string", "app_name", "HyperTrack Live"
- buildConfigField "String", "HYPERTRACK_PK", hyperTrackKeyProperties['publishableKey']
- buildConfigField "String", "HYPERTRACK_BASE_URL", '"https://app.hypertrack.io/api/v1/"'
+ buildConfigField "String", "HYPERTRACK_PK", gradleProperties['hypertrack_publishable_key']
+ buildConfigField "String", "HYPERTRACK_BASE_URL", '"https://api.hypertrack.com/api/v1/"'
resValue "string", "deeplink_scheme", "com.hypertracklive"
resValue "string", "tracking_url", "www.trck.at"
manifestPlaceholders = [applicationLabel: "@string/app_name"]
@@ -57,22 +50,18 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
- compile("com.hypertrack:android:0.2.1:release@aar") {
+ compile("com.hypertrack:android:0.2.2:release@aar") {
transitive = true;
}
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.0'
- compile 'com.android.support:cardview-v7:25.3.0'
- compile 'com.android.support:recyclerview-v7:25.3.0'
+
compile 'com.googlecode.libphonenumber:libphonenumber:8.4.2'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.github.tajchert:WaitingDots:0.4.0'
- compile 'com.google.android.gms:play-services-gcm:10.2.0'
- compile 'com.google.android.gms:play-services-places:10.2.0'
- compile 'com.google.android.gms:play-services-location:10.2.0'
}
apply plugin: 'com.google.gms.google-services'
View
@@ -20,3 +20,4 @@ VERSION_NUMBER=1
version=0.1.0
VERSION_BUILD=2016.01.15.08.27.35
VERSION_PATCH=1
+hypertrack_publishable_key="YOUR_PRODUCTION_PUBLISHABLE_KEY_HERE"
View
@@ -0,0 +1 @@
+publishableKey="YOUR_PRODUCTION_PUBLISHABLE_KEY_HERE"
View
@@ -1,2 +0,0 @@
-publishableKey="YOUR_PRODUCTION_PUBLISHABLE_KEY_HERE"
-testPublishableKey="YOUR_TEST_PUBLISHABLE_KEY_HERE"

0 comments on commit af64278

Please sign in to comment.