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

Commit 9fd5cc0

Browse files
author
Christoph Wendt
committed
Merge branch 'release/1.0.8'
2 parents 214f5fd + f7877c2 commit 9fd5cc0

File tree

172 files changed

+340
-4562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+340
-4562
lines changed

Documentation/Changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
## Changelog
22

3+
### 1.0.8
4+
5+
* Update plugin to HockeySDK iOS 3.7.1
6+
* Append SDK and App information to managed exception reports
7+
* SDK name & version
8+
* App code & version
9+
310
### 1.0.7
411

512
* Update plugin to HockeySDK iOS 3.6.4

ExampleGame/Assets/Editor/mod_pbxproj.pyc.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ExampleGame/Assets/Editor/plistlib.pyc.meta

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ExampleGame/Assets/HockeyAppUnityIOS/HockeyAppUnity-Scripts/HockeyAppIOS.cs

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* Author: Christoph Wendt
44
*
5-
* Version 1.0.7
5+
* Version 1.0.8
66
*
77
* Copyright (c) 2013-2015 HockeyApp, Bit Stadium GmbH.
88
* All rights reserved.
@@ -65,9 +65,15 @@ public enum AuthenticatorType {
6565
[DllImport("__Internal")]
6666
private static extern void HockeyApp_StartHockeyManager(string appID, string serverURL, string authType, string secret, bool updateManagerEnabled, bool autoSendEnabled);
6767
[DllImport("__Internal")]
68-
private static extern string HockeyApp_GetAppVersion();
68+
private static extern string HockeyApp_GetVersionCode();
69+
[DllImport("__Internal")]
70+
private static extern string HockeyApp_GetVersionName();
6971
[DllImport("__Internal")]
7072
private static extern string HockeyApp_GetBundleIdentifier();
73+
[DllImport("__Internal")]
74+
private static extern string HockeyApp_GetSdkVersion();
75+
[DllImport("__Internal")]
76+
private static extern string HockeyApp_GetSdkName();
7177
#endif
7278

7379
void Awake(){
@@ -125,9 +131,12 @@ protected virtual List<string> GetLogHeaders() {
125131
string bundleID = HockeyApp_GetBundleIdentifier();
126132
list.Add("Package: " + bundleID);
127133

128-
string appVersion = HockeyApp_GetAppVersion();
129-
list.Add("Version: " + appVersion);
130-
134+
string versionCode = HockeyApp_GetVersionCode();
135+
list.Add("Version Code: " + versionCode);
136+
137+
string versionName = HockeyApp_GetVersionName();
138+
list.Add("Version Name: " + versionName);
139+
131140
string osVersion = "OS: " + SystemInfo.operatingSystem.Replace("iPhone OS ", "");
132141
list.Add (osVersion);
133142

@@ -258,9 +267,18 @@ protected virtual List<string> GetLogFiles() {
258267
/// </summary>
259268
protected virtual IEnumerator SendLogs(List<string> logs){
260269

270+
261271
string crashPath = HOCKEYAPP_CRASHESPATH;
262272
string url = GetBaseURL() + crashPath.Replace("[APPID]", appID);
263273

274+
#if (UNITY_IPHONE && !UNITY_EDITOR)
275+
string sdkVersion = HockeyApp_GetSdkVersion ();
276+
string sdkName = HockeyApp_GetSdkName ();
277+
if (sdkName != null && sdkVersion != null) {
278+
url += "?sdk=" + sdkName + "&sdk_version=" + sdkVersion;
279+
}
280+
#endif
281+
264282
foreach (string log in logs) {
265283

266284
WWWForm postForm = CreateForm (log);

ExampleGame/Assets/HockeyAppUnityIOS/HockeyAppUnity.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Author: Christoph Wendt
33
*
4-
* Version: 1.0.7
4+
* Version: 1.0.8
55
*
66
* Copyright (c) 2013-2015 HockeyApp, Bit Stadium GmbH.
77
* All rights reserved.
@@ -63,9 +63,13 @@ extern "C" {
6363
autoSendEnabled:(BOOL)autoSendEnabled;
6464

6565
+ (void)showFeedbackListView;
66-
+ (NSString *)appVersion;
67-
+ (NSString *)bundleIdentifier;
6866
+ (BOOL)handleOpenURL:(NSURL *) url sourceApplication:(NSString *) sourceApplication annotation:(id) annotation;
69-
+ (void) sendViewLoadedMessageToUnity;
67+
+ (void)sendViewLoadedMessageToUnity;
68+
69+
+ (NSString *)versionCode;
70+
+ (NSString *)versionName;
71+
+ (NSString *)bundleIdentifier;
72+
+ (NSString *)sdkVersion;
73+
+ (NSString *)sdkName;
7074

7175
@end

ExampleGame/Assets/HockeyAppUnityIOS/HockeyAppUnityWrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* Author: Christoph Wendt
33
*
4-
* Version: 1.0.7
4+
* Version: 1.0.8
55
*
66
* Copyright (c) 2013-2015 HockeyApp, Bit Stadium GmbH.
77
* All rights reserved.

ExampleGame/Assets/HockeyAppUnityIOS/HockeyAppUnityWrapper.m

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,38 @@ void HockeyApp_ShowFeedbackListView() {
1616
[HockeyAppUnity showFeedbackListView];
1717
}
1818

19-
char* HockeyApp_GetAppVersion() {
19+
char* HockeyApp_GetVersionCode() {
2020

21-
const char* appVersion = [[HockeyAppUnity appVersion] UTF8String];
22-
char* res = (char*)malloc(strlen(appVersion) + 1);
23-
strcpy(res, appVersion);
21+
const char* versionCode = [[HockeyAppUnity versionCode] UTF8String];
22+
char* res = (char*)malloc(strlen(versionCode) + 1);
23+
strcpy(res, versionCode);
24+
25+
return res;
26+
}
27+
28+
char* HockeyApp_GetVersionName() {
29+
30+
const char* versionName = [[HockeyAppUnity versionName] UTF8String];
31+
char* res = (char*)malloc(strlen(versionName) + 1);
32+
strcpy(res, versionName);
33+
34+
return res;
35+
}
36+
37+
char* HockeyApp_GetSdkVersion() {
38+
39+
const char* sdkVersion = [[HockeyAppUnity sdkVersion] UTF8String];
40+
char* res = (char*)malloc(strlen(sdkVersion) + 1);
41+
strcpy(res, sdkVersion);
42+
43+
return res;
44+
}
45+
46+
char* HockeyApp_GetSdkName() {
47+
48+
const char* sdkName = [[HockeyAppUnity sdkName] UTF8String];
49+
char* res = (char*)malloc(strlen(sdkName) + 1);
50+
strcpy(res, sdkName);
2451

2552
return res;
2653
}

ExampleGame/Assets/HockeyAppUnityIOS/HockeySDKResources.bundle/Arrow.png.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ExampleGame/Assets/HockeyAppUnityIOS/HockeySDKResources.bundle/[email protected]

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ExampleGame/Assets/HockeyAppUnityIOS/HockeySDKResources.bundle/[email protected]

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)