HDL Home App 第二版本 旧平台金堂用 正在使用
lss
2022-06-09 5ce9a5b3706b7c609d832f73763a853ffd415c85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Android.Content;
using Android.Util;
using System;
using System.IO;
using Huawei.Agconnect.Config;
 
namespace Shared.Droid.JPush
{
    class HmsLazyInputStream : LazyInputStream
    {
        public HmsLazyInputStream(Context context) : base(context)
        {
        }
 
        public override Stream Get(Context context)
        {
            try
            {
                return context.Assets.Open("agconnect-services.json");
            }
            catch (Exception e)
            {
                Log.Info(e.ToString(), "Can't open agconnect file");
                return null;
            }
        }
    }
}