From 24262d16a0d6e3b7d07486d03ab77e607e1847c3 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期一, 21 十二月 2020 14:22:26 +0800
Subject: [PATCH] 增加获取Bug列表的功能
---
HDL-ON_Android/HDL-ON_Android.csproj | 3 +
HDL-ON_Android/Properties/AndroidManifest.xml | 1
HDL-ON_Android/Resources/Resource.designer.cs | 79 ++++++++++++++++++++++++++++++++++++++-
HDL-ON_iOS/HDL-ON_iOS.csproj | 3 +
HDL-ON_iOS/AppDelegate.cs | 3 +
HDL-ON_Android/Application.cs | 13 +++++-
6 files changed, 97 insertions(+), 5 deletions(-)
diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs
index 44e4c01..b8dd1ec 100644
--- a/HDL-ON_Android/Application.cs
+++ b/HDL-ON_Android/Application.cs
@@ -1,10 +1,13 @@
锘縰sing System;
using System.Net;
+using System.Threading.Tasks;
using Android;
using Android.App;
using Android.Content;
using Android.Net;
using Android.OS;
+using Android.Runtime;
+using Android.Widget;
using CN.Jpush.Android.Api;
using HDL_ON;
using Java.Util;
@@ -29,6 +32,9 @@
public Application(IntPtr handle, Android.Runtime.JniHandleOwnership ownerShip) : base(handle, ownerShip) { }
public override void OnCreate()
{
+ //娉ㄥ唽鏈鐞嗗紓甯镐簨浠�
+
+ Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "cb89f20750");
if (Shared.Application.Activity != null)
{
reStartApp(this);
@@ -354,8 +360,11 @@
HDL_ON.DriverLayer.Control.Ins.SearchLoaclGateway();
}
-
+ protected override void Dispose(bool disposing)
+ {
+ base.Dispose(disposing);
+ }
}
-}
\ No newline at end of file
+}
diff --git a/HDL-ON_Android/HDL-ON_Android.csproj b/HDL-ON_Android/HDL-ON_Android.csproj
index 366fa8d..be08aa0 100644
--- a/HDL-ON_Android/HDL-ON_Android.csproj
+++ b/HDL-ON_Android/HDL-ON_Android.csproj
@@ -228,6 +228,9 @@
<PackageReference Include="XamarinLibrary.Xamarin.Android.Manual.JPush">
<Version>3.7.0</Version>
</PackageReference>
+ <PackageReference Include="Bugly">
+ <Version>4.3.1</Version>
+ </PackageReference>
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\Language.ini" />
diff --git a/HDL-ON_Android/Properties/AndroidManifest.xml b/HDL-ON_Android/Properties/AndroidManifest.xml
index 969effc..3abf683 100644
--- a/HDL-ON_Android/Properties/AndroidManifest.xml
+++ b/HDL-ON_Android/Properties/AndroidManifest.xml
@@ -26,6 +26,7 @@
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
+ <uses-permission android:name="android.permission.READ_LOGS" />
<!-- 鏋佸厜鎺ㄩ�佺粨鏉� -->
<application android:allowBackup="true" android:icon="@drawable/Icon" android:networkSecurityConfig="@xml/network_security_config" android:largeHeap="true" android:label="ON+">
<provider android:name="android.support.v4.content.FileProvider" android:authorities="com.hdl.onpro.fileProvider" android:grantUriPermissions="true" android:exported="false">
diff --git a/HDL-ON_Android/Resources/Resource.designer.cs b/HDL-ON_Android/Resources/Resource.designer.cs
index 7503311..52baaa6 100644
--- a/HDL-ON_Android/Resources/Resource.designer.cs
+++ b/HDL-ON_Android/Resources/Resource.designer.cs
@@ -4438,7 +4438,79 @@
public const int status_bar_notification_info_overflow = 2131624016;
// aapt resource value: 0x7F0E0051
- public const int touch_fingerprint_sensor_hint = 2131624017;
+ public const int strNetworkTipsCancelBtn = 2131624017;
+
+ // aapt resource value: 0x7F0E0052
+ public const int strNetworkTipsConfirmBtn = 2131624018;
+
+ // aapt resource value: 0x7F0E0053
+ public const int strNetworkTipsMessage = 2131624019;
+
+ // aapt resource value: 0x7F0E0054
+ public const int strNetworkTipsTitle = 2131624020;
+
+ // aapt resource value: 0x7F0E0055
+ public const int strNotificationClickToContinue = 2131624021;
+
+ // aapt resource value: 0x7F0E0056
+ public const int strNotificationClickToInstall = 2131624022;
+
+ // aapt resource value: 0x7F0E0057
+ public const int strNotificationClickToRetry = 2131624023;
+
+ // aapt resource value: 0x7F0E0058
+ public const int strNotificationClickToView = 2131624024;
+
+ // aapt resource value: 0x7F0E0059
+ public const int strNotificationDownloadError = 2131624025;
+
+ // aapt resource value: 0x7F0E005B
+ public const int strNotificationDownloading = 2131624027;
+
+ // aapt resource value: 0x7F0E005A
+ public const int strNotificationDownloadSucc = 2131624026;
+
+ // aapt resource value: 0x7F0E005C
+ public const int strNotificationHaveNewVersion = 2131624028;
+
+ // aapt resource value: 0x7F0E005E
+ public const int strToastCheckingUpgrade = 2131624030;
+
+ // aapt resource value: 0x7F0E005D
+ public const int strToastCheckUpgradeError = 2131624029;
+
+ // aapt resource value: 0x7F0E005F
+ public const int strToastYourAreTheLatestVersion = 2131624031;
+
+ // aapt resource value: 0x7F0E0060
+ public const int strUpgradeDialogCancelBtn = 2131624032;
+
+ // aapt resource value: 0x7F0E0061
+ public const int strUpgradeDialogContinueBtn = 2131624033;
+
+ // aapt resource value: 0x7F0E0062
+ public const int strUpgradeDialogFeatureLabel = 2131624034;
+
+ // aapt resource value: 0x7F0E0063
+ public const int strUpgradeDialogFileSizeLabel = 2131624035;
+
+ // aapt resource value: 0x7F0E0064
+ public const int strUpgradeDialogInstallBtn = 2131624036;
+
+ // aapt resource value: 0x7F0E0065
+ public const int strUpgradeDialogRetryBtn = 2131624037;
+
+ // aapt resource value: 0x7F0E0066
+ public const int strUpgradeDialogUpdateTimeLabel = 2131624038;
+
+ // aapt resource value: 0x7F0E0067
+ public const int strUpgradeDialogUpgradeBtn = 2131624039;
+
+ // aapt resource value: 0x7F0E0068
+ public const int strUpgradeDialogVersionLabel = 2131624040;
+
+ // aapt resource value: 0x7F0E0069
+ public const int touch_fingerprint_sensor_hint = 2131624041;
static String()
{
@@ -8325,7 +8397,10 @@
public const int network_security_config = 2131820546;
// aapt resource value: 0x7F110003
- public const int xamarin_essentials_fileprovider_file_paths = 2131820547;
+ public const int provider_paths = 2131820547;
+
+ // aapt resource value: 0x7F110004
+ public const int xamarin_essentials_fileprovider_file_paths = 2131820548;
static Xml()
{
diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index e69297b..0f88d41 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -218,6 +218,7 @@
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
//Shared.Application.FontSize = 12;
+ Bugly.Bugly.StartWithAppId("b58fb35436");
//鍙栨秷EditText榛樿瀵嗙爜杈撳叆鏂瑰紡
Shared.Application.IsEditTextContentTypePassword = false;
@@ -231,7 +232,7 @@
Window.RootViewController = rootViewController;
Window.MakeKeyAndVisible();
- AppCenter.Start("e1add75a-82c6-4a5c-a902-4705b195748e",typeof(Analytics), typeof(Crashes));
+ //AppCenter.Start("e1add75a-82c6-4a5c-a902-4705b195748e",typeof(Analytics), typeof(Crashes));
base.FinishedLaunching(application, launchOptions);
SharedMethod.SharedMethod.sharedApp = application;
diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj
index 849af29..9dbabb1 100644
--- a/HDL-ON_iOS/HDL-ON_iOS.csproj
+++ b/HDL-ON_iOS/HDL-ON_iOS.csproj
@@ -108,6 +108,9 @@
<PackageReference Include="RestSharp">
<Version>106.11.7</Version>
</PackageReference>
+ <PackageReference Include="Xamarin.iOS.Bugly">
+ <Version>1.0.4</Version>
+ </PackageReference>
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" />
--
Gitblit v1.8.0