包含内容: - thirdparty flavor 独立 applicationId + Intent 入口(ThirdPartyEntryActivity) - 58 后端接口适配(单 /api 路径、code 0/200、camelCase 字段、UNBOUND 轮询) - MAC 硬件锚定校验(防一凭证多设备共用) - EPG mac 覆盖 SDK init(sMacOverride)+ ChannelManger 初始化对齐 - 提示文案优化(设备未注册/权益未绑定)
26 lines
748 B
Java
Executable File
26 lines
748 B
Java
Executable File
package com.migu.jiecheng;
|
|
|
|
import android.content.Context;
|
|
|
|
import androidx.test.platform.app.InstrumentationRegistry;
|
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
|
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
/**
|
|
* Instrumented test, which will execute on an Android device.
|
|
*
|
|
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
|
*/
|
|
@RunWith(AndroidJUnit4.class)
|
|
public class ExampleInstrumentedTest {
|
|
@Test
|
|
public void useAppContext() {
|
|
// Context of the app under test.
|
|
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
|
assertEquals("com.migu.jiecheng", appContext.getPackageName());
|
|
}
|
|
} |