Permalink
Please sign in to comment.
Browse files
Open Source HyperTrack Live. Yayy!
properties file for publishable key
- Loading branch information...
94
.gitignore
| @@ -0,0 +1,94 @@ | ||
| +### Android ### | ||
| +# Built application files | ||
| +*.apk | ||
| +*.ap_ | ||
| + | ||
| +# Files for the Dalvik VM | ||
| +*.dex | ||
| + | ||
| +# Java class files | ||
| +*.class | ||
| + | ||
| +# Generated files | ||
| +bin/ | ||
| +gen/ | ||
| + | ||
| +# Gradle files | ||
| +.gradle/ | ||
| +build/ | ||
| + | ||
| +# Local configuration file (sdk path, etc) | ||
| +local.properties | ||
| +keystore.properties | ||
| + | ||
| +# Proguard folder generated by Eclipse | ||
| +proguard/ | ||
| + | ||
| +# Log Files | ||
| +*.log | ||
| + | ||
| +# Android Studio Navigation editor temp files | ||
| +.navigation/ | ||
| + | ||
| +library/ | ||
| + | ||
| +### Android Patch ### | ||
| +gen-external-apklibs | ||
| + | ||
| +### Keystore Files ### | ||
| +*.keystore | ||
| +*.jks | ||
| + | ||
| +### Intellij ### | ||
| +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio | ||
| + | ||
| +*.iml | ||
| + | ||
| +## Directory-based project format: | ||
| +.idea/ | ||
| +# if you remove the above rule, at least ignore the following: | ||
| + | ||
| +# User-specific stuff: | ||
| +# .idea/workspace.xml | ||
| +# .idea/tasks.xml | ||
| +# .idea/dictionaries | ||
| + | ||
| +# Sensitive or high-churn files: | ||
| +# .idea/dataSources.ids | ||
| +# .idea/dataSources.xml | ||
| +# .idea/sqlDataSources.xml | ||
| +# .idea/dynamic.xml | ||
| +# .idea/uiDesigner.xml | ||
| + | ||
| +# Gradle: | ||
| +# .idea/gradle.xml | ||
| +# .idea/libraries | ||
| + | ||
| +# Mongo Explorer plugin: | ||
| +# .idea/mongoSettings.xml | ||
| + | ||
| +## File-based project format: | ||
| +*.ipr | ||
| +*.iws | ||
| + | ||
| +## Plugin-specific files: | ||
| + | ||
| +# IntelliJ | ||
| +/out/ | ||
| + | ||
| +# mpeltonen/sbt-idea plugin | ||
| +.idea_modules/ | ||
| + | ||
| +# JIRA plugin | ||
| +atlassian-ide-plugin.xml | ||
| + | ||
| +# Crashlytics plugin (for Android Studio and IntelliJ) | ||
| +com_crashlytics_export_strings.xml | ||
| +crashlytics.properties | ||
| +crashlytics-build.properties | ||
| + | ||
| +.DS_store/ | ||
| +.DS_store | ||
| +app/src/main/java/io/hypertrack/sendeta/SearchView/ | ||
| +app/src/main/java/io/hypertrack/sendeta/autocompleteplace/ | ||
| +/hypertrackkey.properties |
23
README.md
| @@ -0,0 +1,23 @@ | ||
| +# HyperTrack Live | ||
| +[](http://slack.hypertrack.com) | ||
| + | ||
| +App to share your live location with family and friends and them share their location back with you. | ||
| + | ||
| +Share your live location with family and friends and let them share their location back with you. | ||
| + | ||
| +## Usage | ||
| +1. Clone the project. | ||
| +2. Get HyperTrack API keys. Learn more about them [here](https://docs.hypertrack.com/v3/gettingstarted/authentication.html), and sign up for them [here](https://dashboard.hypertrack.com/signup). | ||
| +3. Get [Google Map API Key](https://developers.google.com/maps/documentation/android-api/signup) and add them to AndroidManifest.xml . | ||
| +4. Add publishable key to hypertrackkey.properties file. | ||
| +5. Follow the [live location sharing tutorial](https://www.hypertrack.com/tutorials/live-location-sharing-android-messaging-app) . | ||
| + | ||
| +## Documentation | ||
| +For detailed documentation of the methods and customizations, please visit the official [docs](https://docs.hypertrack.com/). | ||
| + | ||
| +## Contribute | ||
| +Please use the [issues tracker](https://github.com/hypertrack/example-android/issues) to raise bug reports and feature requests. We'd love to see your pull requests - send them in! | ||
| + | ||
| +## Support | ||
| +Join our [Slack community](http://slack.hypertrack.com) for instant responses, or interact with our growing [Community](https://community.hypertrack.com). You can also email us at help@hypertrack.com. | ||
| + |
| @@ -0,0 +1 @@ | ||
| +/build |
| @@ -0,0 +1,78 @@ | ||
| +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 | ||
| + maven { url 'http://hypertrack-android-sdk.s3-website-us-west-2.amazonaws.com/' } | ||
| +} | ||
| + | ||
| +android { | ||
| + compileSdkVersion 25 | ||
| + buildToolsVersion '25.0.2' | ||
| + lintOptions { | ||
| + abortOnError false | ||
| + } | ||
| + | ||
| + def hyperTrackKeyPropertiesFile = rootProject.file("hypertrackkey.properties"); | ||
| + def hyperTrackKeyProperties = new Properties() | ||
| + hyperTrackKeyProperties.load(new FileInputStream(hyperTrackKeyPropertiesFile)) | ||
| + | ||
| + 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", hyperTrackKeyProperties['publishableKey'] | ||
| + buildConfigField "String", "HYPERTRACK_BASE_URL", '"https://app.hypertrack.io/api/v1/"' | ||
| + resValue "string", "deeplink_scheme", "com.hypertracklive" | ||
| + resValue "string", "tracking_url", "www.trck.at" | ||
| + manifestPlaceholders = [applicationLabel: "@string/app_name"] | ||
| + multiDexEnabled true | ||
| + } | ||
| + | ||
| + buildTypes { | ||
| + release { | ||
| + debuggable false | ||
| + minifyEnabled true | ||
| + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
| + } | ||
| + } | ||
| +} | ||
| + | ||
| +dependencies { | ||
| + compile fileTree(include: ['*.jar'], dir: 'libs') | ||
| + testCompile 'junit:junit:4.12' | ||
| + | ||
| + compile("com.hypertrack:android:0.2.1: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' |
| @@ -0,0 +1,3 @@ | ||
| +#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public. | ||
| +#Fri Nov 27 09:52:10 IST 2015 | ||
| +apiSecret=b10b6221b9fa60dd0b4eaef4c5a7f9610dc02451f67f01b9156fcf864bd34801 |
| @@ -0,0 +1,5 @@ | ||
| +#Mon May 08 18:29:33 IST 2017 | ||
| +VERSION_NUMBER=36 | ||
| +version=1.4.1 | ||
| +VERSION_PATCH=1 | ||
| +HYPERTRACK_SDK_VERSION=0.2.0 |
| @@ -0,0 +1,63 @@ | ||
| +# Add project specific ProGuard rules here. | ||
| +# By default, the flags in this file are appended to flags specified | ||
| +# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt | ||
| +# You can edit the include path and order by changing the proguardFiles | ||
| +# directive in build.gradle. | ||
| +# | ||
| +# For more details, see | ||
| +# http://developer.android.com/guide/developing/tools/proguard.html | ||
| + | ||
| +# Add any project specific keep options here: | ||
| + | ||
| +# If your project uses WebView with JS, uncomment the following | ||
| +# and specify the fully qualified class name to the JavaScript interface | ||
| +# class: | ||
| +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| +# public *; | ||
| +#} | ||
| + | ||
| +-keepattributes *Annotation* | ||
| + | ||
| +-keep public class com.google.** {*;} | ||
| +-keep class com.crashlytics.** { *; } | ||
| +-keep class com.crashlytics.android.** | ||
| +-keep class com.facebook.** { *; } | ||
| +-keep class com.squareup.okhttp.** { *; } | ||
| +-keep class retrofit2.** { *; } | ||
| +-keep class io.hypertrack.sendeta.model.** { *; } | ||
| +-keep class io.hypertrack.sendeta.network.** { *; } | ||
| +-keep class io.hypertrack.sendeta.store.** { *; } | ||
| +-keep class maps.** { *; } | ||
| +-keep class com.hypertrack.lib.** { *; } | ||
| + | ||
| +-keep interface com.squareup.okhttp.** { *; } | ||
| + | ||
| +-keepclassmembers class * { | ||
| + @android.webkit.JavascriptInterface <methods>; | ||
| +} | ||
| + | ||
| +-keepattributes JavascriptInterface | ||
| + | ||
| +-dontwarn com.squareup.okhttp.** | ||
| +-dontwarn retrofit2.** | ||
| +-dontwarn okio.** | ||
| +-dontwarn com.google.android.gms.** | ||
| +-dontwarn com.hypertrack.lib.** | ||
| + | ||
| +-keepclasseswithmembers class * { | ||
| + @retrofit.http.* <methods>; | ||
| +} | ||
| + | ||
| +-keepattributes Signature | ||
| +-keepattributes Exceptions | ||
| + | ||
| +-keepattributes SourceFile,LineNumberTable | ||
| +-renamesourcefileattribute SourceFile | ||
| + | ||
| +-keepattributes *Annotation* | ||
| + | ||
| +## For Retrofit | ||
| +-keepattributes Signature | ||
| + | ||
| +## Other | ||
| +-dontwarn com.google.common.** |
| @@ -0,0 +1,13 @@ | ||
| +package io.hypertrack.sendeta; | ||
| + | ||
| +import android.app.Application; | ||
| +import android.test.ApplicationTestCase; | ||
| + | ||
| +/** | ||
| + * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | ||
| + */ | ||
| +public class ApplicationTest extends ApplicationTestCase<Application> { | ||
| + public ApplicationTest() { | ||
| + super(Application.class); | ||
| + } | ||
| +} |
| @@ -0,0 +1,23 @@ | ||
| +package io.hypertrack.sendeta.util; | ||
| + | ||
| +import android.util.Log; | ||
| + | ||
| +import com.hypertrack.lib.HyperTrack; | ||
| + | ||
| + | ||
| +/** | ||
| + * Created by piyush on 03/07/16. | ||
| + */ | ||
| +public class DevDebugUtils { | ||
| + | ||
| + private static final String TAG = DevDebugUtils.class.getSimpleName(); | ||
| + | ||
| + public static void setHTLogLevel(int logLevel) { | ||
| + | ||
| + HyperTrack.enableDebugLogging(logLevel); | ||
| + } | ||
| + | ||
| + public static void sdkVersionMessage() { | ||
| + Log.i(TAG, "HyperTrack Live: SDK Version " + HyperTrack.getSDKVersion()); | ||
| + } | ||
| +} |
| @@ -0,0 +1,21 @@ | ||
| +<resources> | ||
| + <!-- | ||
| + TODO: Before you run your application, you need a Google Maps API key. | ||
| + | ||
| + To get one, follow this link, follow the directions and press "Create" at the end: | ||
| + | ||
| + https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=6A:DF:48:37:42:4C:1E:48:3A:14:67:B1:C5:DE:6F:4E:81:40:F5:C9%3Bio.hypertrack.meta | ||
| + | ||
| + You can also add your credentials to an existing key, using this line: | ||
| + 6A:DF:48:37:42:4C:1E:48:3A:14:67:B1:C5:DE:6F:4E:81:40:F5:C9;io.hypertrack.meta | ||
| + | ||
| + Alternatively, follow the directions here: | ||
| + https://developers.google.com/maps/documentation/android/start#get-key | ||
| + | ||
| + Once you have your key (it starts with "AIza"), replace the "google_maps_key" | ||
| + string in this file. | ||
| + --> | ||
| + <string name="google_maps_key" translatable="false" templateMergeStrategy="preserve"> | ||
| + AIzaSyBAIdcdSeRVEV7adfxAhwFm52Sv1VDWPNs | ||
| + </string> | ||
| +</resources> |
Oops, something went wrong.
0 comments on commit
4444ccf