hxb
2022-01-18 98ac02b6c4baf63637c6e848a94d646e1a248760
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;
            }
        }
    }
}