<root xmlns:android="http://schemas.android.com/apk/res/android">

<!--    <resourceCopies>-->
<!--    <copyFile  src = "$S(PluginDir)/../ThirdParty/Android/com.reyun.solar.engine.china.solar-engine-core-1.3.1.0.aar"  -->
<!--               dst = "$S(BuildDir)/gradle/app/libs/com.reyun.solar.engine.china.solar-engine-core-1.3.1.0.aar" /> -->
<!--        <copyFile  src = "$S(PluginDir)/../ThirdParty/Android/com.reyun.solar.engine.china.solar-remote-config-1.3.1.0.aar"  -->
<!--               dst = "$S(BuildDir)/gradle/app/libs/com.reyun.solar.engine.china.solar-remote-config-1.3.1.0.aar" />-->
<!--    </resourceCopies>-->
    <buildGradleAdditions>
        <insert>

            repositories {
            google()
            jcenter()
            mavenCentral()

            //SE SDK仓库地址
            maven { url "https://maven-android.solar-engine.com/repository/se_sdk_for_android/" }
            maven { url "https://developer.huawei.com/repo/" }
            maven { url "https://developer.hihonor.com/repo/" }
            }
            dependencies {
            implementation 'com.reyun.solar.engine.oversea:solar-remote-config:1.3.1.2'
            implementation 'com.reyun.solar.engine.oversea:solar-engine-core:1.3.1.2'
            }
        </insert>
    </buildGradleAdditions>
    <androidManifestUpdates>
<!--        网络相关权限（必填）-->
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<!--        IMEI相关权限（可选）-->
<!--        <uses-permission android:name="android.permission.READ_PHONE_STATE" />-->
    </androidManifestUpdates>
    <gameActivityImportAdditions>
        <insert>

        </insert>
    </gameActivityImportAdditions>
    <gameActivityClassAdditions>
        <insert>
            <![CDATA[

            ]]>
        </insert>
    </gameActivityClassAdditions>

    <prebuildCopies>
        <log text="Copying SEAnalyticsWrapper.java file"/>
        <copyFile src="$S(PluginDir)/Java/com/epicgames/unreal/SEAnalyticsWrapper.java"
                  dst = "$S(BuildDir)/src/com/epicgames/unreal/SEAnalyticsWrapper.java" />
       
    </prebuildCopies>
    <gameApplicationOnCreateAdditions>
        <insert>
            SEAnalyticsWrapper.init(getApplicationContext());
        </insert>
    </gameApplicationOnCreateAdditions>
    <gameActivityOnNewIntentAdditions>
        <insert>
        SEAnalyticsWrapper.appDeeplinkOpenURL(newIntent.getData().toString());
        </insert>
    </gameActivityOnNewIntentAdditions>
</root>
