Skip to content

Commit

Permalink
Version 3.0.0 sdk (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszpua committed Mar 8, 2019
1 parent 13d28ed commit 3d5e6fe
Show file tree
Hide file tree
Showing 35 changed files with 431 additions and 921 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 HyperTrack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
294 changes: 167 additions & 127 deletions README.md

Large diffs are not rendered by default.

48 changes: 16 additions & 32 deletions app/build.gradle
@@ -1,55 +1,39 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
compileSdkVersion 28
defaultConfig {
applicationId "com.hypertrack.quickstart"
minSdkVersion 14
targetSdkVersion 26
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

/**
* HyperTrack SDKs are hosted on the below url. Add the url as specified below.
* If this exists already, add a new "maven {url }" entry in the existing
* repositories block.
*/
repositories {
maven { url 'http://hypertrack-android-sdk.s3-website-us-west-2.amazonaws.com/' }
maven {
url 'http://hypertrack-core-android.s3-website-us-east-1.amazonaws.com/'
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'

implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
testCompile 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation("com.hypertrack:hypertrack:3.0.0@aar") {transitive = true}

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

/**
* HyperTrack SDKs are shipped as @aar formats. Include the HyperTrack SDK's
* latest version as specified below. For detailed SDK changelog, Refer to
* https://docs.hypertrack.com/sdks/android/changelog.html.
*
* transitive = true, enables the SDK to include its internal dependencies
* automatically. Refer here for more info on HyperTrack SDK dependencies.
*/
implementation('com.hypertrack:android:0.7.39@aar') {
transitive = true;
}
compile 'com.hypertrack:hyperlog:0.0.9'
}
apply plugin: 'com.google.gms.google-services'
42 changes: 0 additions & 42 deletions app/google-services.json

This file was deleted.

24 changes: 8 additions & 16 deletions app/proguard-rules.pro
@@ -1,29 +1,21 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/piyush/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
# You can control the set of applied configuration files using the
# proguardFiles setting 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 *;
#}

# Proguard Rules for HyperTrack SDK
-keep class com.hypertrack.lib.** { *; }
-dontwarn com.hypertrack.lib.**

# Proguard Rules to ignore InnerClass warnings for Paho SDK
-keepattributes EnclosingMethod
-keepattributes InnerClasses
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# Proguard Rules for Google's Play Services SDK
-keep public class com.google.android.gms.* { public *; }
-dontwarn com.google.android.gms.**
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Expand Up @@ -10,17 +10,17 @@
import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.hypertrack.androidsdkonboarding", appContext.getPackageName());
assertEquals("com.hypertrack.quickstart", appContext.getPackageName());
}
}
20 changes: 7 additions & 13 deletions app/src/main/AndroidManifest.xml
@@ -1,29 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.hypertrack.quickstart">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:icon="@drawable/ic_green"
android:label="@string/app_name"
android:supportsRtl="true"
android:name="com.hypertrack.quickstart.MyApplication"
android:theme="@style/AppTheme.NoActionBar">

<activity android:name="com.hypertrack.quickstart.LoginActivity">
android:name=".MyApplication"
android:theme="@style/AppTheme"
tools:ignore="AllowBackup,GoogleAppIndexingWarning">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name="com.hypertrack.quickstart.MainActivity"/>
<service android:name="com.hypertrack.quickstart.MyFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
</application>

</manifest>
32 changes: 0 additions & 32 deletions app/src/main/java/com/hypertrack/quickstart/BaseActivity.java

This file was deleted.

0 comments on commit 3d5e6fe

Please sign in to comment.