Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #21 from bitstadium/release/5.0.0
Browse files Browse the repository at this point in the history
Release/5.0.0
  • Loading branch information
Benjamin Scholtysik (Reimold) authored Sep 28, 2017
2 parents 96749c2 + c890bab commit 073aada
Show file tree
Hide file tree
Showing 23 changed files with 125 additions and 59 deletions.
41 changes: 39 additions & 2 deletions Documentation/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,49 @@
###Changelog:###
## Changelog

### 5.0.0

Upgrade to HockeySDK for Android 5.0.2.

This release comes with one major breaking change. HockeySDK 5.0.0 raises the minimum API level to 15.
In addition, we no longer support restricting builds by device id. The reason is that, with Android O, `ANDROID_ID` no longer ensures a consistent way of identification of a user.

To be ready for Android O, HockeySDK-Android now limits the `WRITE_EXTERNAL_STORAGE` permission with the `maxSdkVersion` filter. In some use cases, e.g. where an app contains a dependency that requires this permission, `maxSdkVersion` makes it impossible for those dependencies to grant or request the permission. The solution for those cases is to declare the `tools:node="replace"` manifest merging strategy later in the dependency tree:

```<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" tools:node="replace"/>```

#### Full changelog

In addition, this release contains the following changes:

* [IMPROVEMENT] Support for Android O.
* [IMPROVEMENT] Code scans no longer trigger warnings related to usage of `ANDROID_ID` as we are no longer using it.
* [IMPROVEMENT] The SDK supports Android Strict Mode way better as it no longer violates it.
* [IMPROVEMENT] We've improved the way we send Feedback attachments.
* [IMPROVEMENT] The SDK no longer caches information about in-app updates to make sure updates are available immediately. The iOS SDK has behaved like this for a while and we decided to align the behavior across SDKs.
* [IMPROVEMENT] Add the ability to when to show the UpdateFragment [#280](https://github.com/bitstadium/HockeySDK-Android/issues/280).
* [IMPROVEMENT] Retrieving the last crash details is now asynchronous.
* [BUGFIX] Metrics no longer leaks a connection.
* [BUGFIX] It's no longer possible to circumvent the login UI by pressing the backbutton under certain circumstances [#278](https://github.com/bitstadium/HockeySDK-Android/pull/278).
* [BUGFIX] Fix a crash in MetricsManager [#279](https://github.com/bitstadium/HockeySDK-Android/pull/279).
* [BUGFIX] Fix authentication by email [#288](https://github.com/bitstadium/HockeySDK-Android/pull/288).
* [BUGFIX] Fix a regression that was introduced in 5.0.0-beta.1 that prevented attaching screenshots to work [#289](https://github.com/bitstadium/HockeySDK-Android/pull/289).
* [BUGFIX] Fix Feedback notifications on Android [#290](https://github.com/bitstadium/HockeySDK-Android/pull/290).
* [IMPROVEMENT] Add the ability to when to show the UpdateFragment [#280](https://github.com/bitstadium/HockeySDK-Android/issues/280).
* [IMPROVEMENT] `CrashManagerListener` now has `onNoCrashesFound()` to notify you in case no new crashes were found [#280](https://github.com/bitstadium/HockeySDK-Android/issues/280).
* [DEPRECATION] We've removed the `onCrashesFound` callback in `CrashManagerListener` as it has been deprecated since HockeySDK 3.0.0.
* [Bugfix] Fixes a NPE in `FeedbackActivity`. [#303](https://github.com/bitstadium/HockeySDK-Android/pull/303)
* [Bugfix] Fixes a potential deadlock in `CrashManager`.[#https://github.com/bitstadium/HockeySDK-Android/pull/308]
* [Improvement] Fix potential NPE when calling `MetricsManager.sessionTrackingEnabled()` before calling `MetricsManager.register(...)`. [#310](https://github.com/bitstadium/HockeySDK-Android/pull/310)
* * [Bugfix] Fix a bug in the Italian translation. [#296](https://github.com/bitstadium/HockeySDK-Android/pull/296)
* [Improvement] Use different timestamp format for crash date and app start time. [#297](https://github.com/bitstadium/HockeySDK-Android/pull/297)

### 1.1.6

Upgrade to HockeySDK for Android 4.1.5

* [FIX] Fix a resource leak in Sender.
* [FIX] Fix possibility to bypass authentication.
* [FIX] Fix the progressbar when sending feedback.
* [FIX] Fix the progress bar when sending feedback.
* [FIX] Fix the dates in the Feedback UI.
* [FIX] Fix ConcurrentModificationException in metrics feature.
* [FIX] Fix potential crash related to multi-threading in Channel.
Expand Down
6 changes: 3 additions & 3 deletions ExampleGame/Assets/HockeyAppUnityAndroid/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.hockeyapp.unity"
android:versionCode="16"
android:versionName="1.1.6" >
android:versionCode="17"
android:versionName="5.0.0" >

<uses-sdk
android:minSdkVersion="9"
android:minSdkVersion="15"
android:targetSdkVersion="26" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Version: 1.1.6
* Version: 5.0.0
*/

using UnityEngine;
Expand Down
Binary file not shown.
16 changes: 0 additions & 16 deletions ExampleGame/Assets/HockeyAppUnityAndroid/HockeySDK-4.1.5.aar.meta

This file was deleted.

Binary file not shown.
33 changes: 33 additions & 0 deletions ExampleGame/Assets/HockeyAppUnityAndroid/HockeySDK-5.0.2.aar.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified ExampleGame/ProjectSettings/ProjectSettings.asset
Binary file not shown.
3 changes: 1 addition & 2 deletions ExampleGame/ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
m_EditorVersion: 5.0.0f4
m_StandardAssetsVersion: 0
m_EditorVersion: 5.6.3f1
6 changes: 3 additions & 3 deletions HockeyAppUnityPlugin/hockeysdk-unity/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
buildToolsVersion "26.0.1"

defaultConfig {
minSdkVersion 9
minSdkVersion 15
targetSdkVersion 26
}

Expand All @@ -25,5 +25,5 @@ repositories {
}

dependencies {
compile(name:'HockeySDK-4.1.5', ext:'aar')
compile(name:'HockeySDK-5.0.2', ext:'aar')
}
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,6 @@ public static String getVersionName() {
*/
public static String getSdkName() {return Constants.SDK_NAME; }

/**
* @return unique identifier for crash reports.
*/
public static String getCrashReporterKey() {return Constants.CRASH_IDENTIFIER; }

/**
* @return the device's model manufacturer name.
*/
Expand Down
6 changes: 3 additions & 3 deletions Plugins/HockeyAppUnityAndroid/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.hockeyapp.unity"
android:versionCode="16"
android:versionName="1.1.6" >
android:versionCode="17"
android:versionName="5.0.0" >

<uses-sdk
android:minSdkVersion="9"
android:minSdkVersion="15"
android:targetSdkVersion="26" />

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Version: 1.1.6
* Version: 5.0.0
*/

using UnityEngine;
Expand All @@ -16,6 +16,7 @@ public class HockeyAppAndroid : MonoBehaviour
protected const string HOCKEYAPP_CRASHESPATH = "api/2/apps/[APPID]/crashes/upload";
protected const int MAX_CHARS = 199800;
protected const string LOG_FILE_DIR = "/logs/";
private const string SERVER_URL_PLACEHOLDER = "your-custom-server-url";
private static HockeyAppAndroid instance;

public enum AuthenticatorType
Expand All @@ -29,7 +30,7 @@ public enum AuthenticatorType
[Header("HockeyApp Setup")]
public string appID = "your-hockey-app-id";
public string packageID = "your-package-identifier";
public string serverURL = "your-custom-server-url";
public string serverURL = SERVER_URL_PLACEHOLDER;

[Header("Authentication")]
public AuthenticatorType authenticatorType;
Expand Down Expand Up @@ -477,7 +478,7 @@ protected virtual string GetBaseURL ()
#if (UNITY_ANDROID && !UNITY_EDITOR)

string urlString = serverURL.Trim();
if(urlString.Length > 0) {
if(urlString.Length > 0 && urlString != SERVER_URL_PLACEHOLDER) {
baseURL = urlString;

if(baseURL[baseURL.Length -1].Equals("/") != true) {
Expand Down
Binary file removed Plugins/HockeyAppUnityAndroid/HockeySDK-4.1.5.aar
Binary file not shown.
Binary file not shown.
Binary file added Plugins/HockeyAppUnityAndroid/README.pdf
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 1.1.6
# Version 5.0.0

## Introduction

Expand All @@ -10,7 +10,7 @@ The following features are currently supported:

2. **Collect exceptions** The HockeySDK-Unity-Android can automatically report uncaught managed exceptions coming from your C# code. Just like crashes, those exceptions will be sent on the next app start and are displayed on HockeyApp.

2. **User metrics:** Understand user behavior to improve your app. Track usage through daily and monthly active users. Monitor crash impacted users. Measure customer engagement through session count. This feature requires a minimum API level of 14 (Android 4.x Ice Cream Sandwich).
2. **User metrics:** Understand user behavior to improve your app. Track usage through daily and monthly active users. Monitor crash impacted users. Measure customer engagement through session count.

3. **Update alpha/beta apps:** The app will check with HockeyApp if a new version for your alpha/beta build is available. If yes, it will show a dialog to users and let them see the release notes, the version history and start the installation process right away. You can even force the installation of certain updates.

Expand All @@ -20,19 +20,19 @@ The following features are currently supported:

This document contains the following sections:

1. [Requirements (Version 1.1.6)](#1)
1. [Requirements](#1)
2. [Installation & Setup](#2)
3. [Examples](#3)
4. [Troubleshooting](#4)
5. [Code of Conduct](#5)
6. [Contributor License](#6)
7. [Licenses](#7)

## <a name="1"></a>Requirements (Version 1.1.6)
## <a name="1"></a>Requirements

* [Changelog](Documentation/Changelog.md)
* Unity 5.0 or newer (SDK versions with Unity 4 support can be found at the [Unity Asset Store](https://www.assetstore.unity3d.com/en/?gclid=CO) or by switching to the 1.0.3 tag on GitHub).
* Android 2.3 or newer.
* Android API level 15 or later.

## <a name="2"></a>Installation & Setup

Expand Down

0 comments on commit 073aada

Please sign in to comment.