Permalink
Switch branches/tags
Nothing to show
Find file
a9d1caf May 24, 2017
@piyushgupta27 @amanjain08
76 lines (64 sloc) 3.06 KB
buildscript {
repositories {
mavenCentral()
}
}
apply plugin: 'com.android.application'
repositories {
// HyperTrack SDK Repository
maven { url 'http://hypertrack-android-sdk.s3-website-us-west-2.amazonaws.com/' }
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
lintOptions {
abortOnError false
}
def keyPropertiesFile = rootProject.file("key.properties");
def keyProperties = new Properties()
keyProperties.load(new FileInputStream(keyPropertiesFile))
defaultConfig {
applicationId "io.hypertrack.sendeta"
versionCode 1
versionName "0.1.1"
minSdkVersion 19
targetSdkVersion 25
resValue "string", "app_name", "HyperTrack Live"
buildConfigField "String", "HYPERTRACK_PK", keyProperties['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"]
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.7.22'
testCompile 'org.robolectric:robolectric:3.0'
testCompile 'org.robolectric:shadows-support-v4:3.0'
compile("com.hypertrack:android:0.2.6:release@aar") {
transitive = true;
}
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design: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'
}
/**
* - Uncomment `HyperTrackLiveFCMListenerService` service tag in the <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/src/main/AndroidManifest.xml#L161">AndroidManifest.xml</a> file.
* - Uncomment <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/src/main/java/io/hypertrack/sendeta/service/HyperTrackLiveFCMListenerService.java#L36">HyperTrackLiveFCMListenerService.java</a> file.
* - Once you have either an existing account on <a href="https://console.developers.google.com/">Google Developer</a> or a new account <a href="https://console.firebase.google.com">Firebase console</a>, you will need to add <a href="https://support.google.com/firebase/answer/7015592">google-services.json</a> file for your app to remove the below compilation failure.
* - Uncomment `apply google-services plugin` in <a href="https://github.com/hypertrack/hypertrack-live-android/blob/master/app/build.gradle#L75">build.gradle</a> file.
*/
//apply plugin: 'com.google.gms.google-services'