| | |
| | | { |
| | | |
| | | |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.0.99")] |
| | | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "13.2.1.111")] |
| | | public partial class Resource |
| | | { |
| | | |
| | |
| | | //#endif |
| | | JPushInterface.Init(this); |
| | | |
| | | Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); |
| | | //Com.Chteam.Agent.BuglyAgentHelper.Init(this.ApplicationContext, "316a8f5d83"); |
| | | |
| | | |
| | | BaseActivity.OnCreateActoin += (activity, application) => |
| | |
| | | Console.WriteLine("111111111111"); |
| | | SetCurrentLanguage(); |
| | | //Shared.Application.FontSize = 12; |
| | | Bugly.Bugly.StartWithAppId("1dc40c170a"); |
| | | //Bugly.Bugly.StartWithAppId("1dc40c170a"); |
| | | //取消EditText默认密码输入方式 |
| | | //Shared.Application.IsEditTextContentTypePassword = false; |
| | | //默认使用苹方字体 |
| | |
| | | <PackageReference Include="RestSharp"> |
| | | <Version>106.13.0</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Xamarin.iOS.Bugly"> |
| | | <Version>1.0.4</Version> |
| | | </PackageReference> |
| | | <PackageReference Include="Xamarin.Essentials"> |
| | | <Version>1.7.0</Version> |
| | | </PackageReference> |
| | |
| | | static void SendPushSignOut() |
| | | { |
| | | byte[] message = Encoding.UTF8.GetBytes(PushSignStr); |
| | | #if DEBUG |
| | | |
| | | MqttRemoteSend(message, 4); |
| | | #endif |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// 固定域名,正式环境 |
| | | /// 公共域名就近解析 |
| | | /// </summary> |
| | | //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; |
| | | public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com"; |
| | | //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com"; |
| | | const string APP_KEY = "HDL-HOME-APP-TEST"; |
| | | const string SECRET_KEY = "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss"; |
| | | |
| | |
| | | try |
| | | { |
| | | #if __ANDROID__ |
| | | Com.Chteam.Agent.BuglyAgentHelper.SetUserId(UserInfo.Current.AccountString); |
| | | //Com.Chteam.Agent.BuglyAgentHelper.SetUserId(UserInfo.Current.AccountString); |
| | | #else |
| | | Bugly.Bugly.SetUserIdentifier(UserInfo.Current.AccountString); |
| | | //Bugly.Bugly.SetUserIdentifier(UserInfo.Current.AccountString); |
| | | #endif |
| | | } |
| | | catch (Exception ex) |