提交 3dbe4412 作者: 刘添

Android掌玩SDK新版更新

上级 017a1c09
package com.zwwl.game.zygamesdk
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.zwwl.game.zygamesdk", appContext.packageName)
}
}
\ No newline at end of file
......@@ -49,10 +49,6 @@ public class ZyMainActivity extends Activity {
AppUtils.onRole();
}else if("行为角色上报".equals(mSeletedModule.name)){
AppUtils.putRolePort();
}else if("巨量注册".equals(mSeletedModule.name)){
GameService.getInstance().onEventRegister();
}else if("巨量付费".equals(mSeletedModule.name)){
GameService.getInstance().onEventPurchase();
}
});
}
......
......@@ -4,11 +4,9 @@ import android.util.SparseArray;
import com.zwwl.game.zygamesdk.module.BaseModule;
import com.zwwl.game.zygamesdk.module.InitModel;
import com.zwwl.game.zygamesdk.module.JuLiangPlayModel;
import com.zwwl.game.zygamesdk.module.LoginModel;
import com.zwwl.game.zygamesdk.module.OutModel;
import com.zwwl.game.zygamesdk.module.PlayModel;
import com.zwwl.game.zygamesdk.module.RegistereModel;
import com.zwwl.game.zygamesdk.module.RoleModel;
import com.zwwl.game.zygamesdk.module.RoleReportModel;
......@@ -55,8 +53,8 @@ public class ModuleManager {
sModulesList.append(PLAY, new PlayModel());
sModulesList.append(ROLE_UP, new RoleModel());
sModulesList.append(ROLE_PORT, new RoleReportModel());
sModulesList.append(REGISTEREMODEL, new RegistereModel());
sModulesList.append(JULIANGPLAYMODEL, new JuLiangPlayModel());
// sModulesList.append(REGISTEREMODEL, new RegistereModel());
// sModulesList.append(JULIANGPLAYMODEL, new JuLiangPlayModel());
}
......
package com.zwwl.game.zygamesdk
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
......@@ -10,8 +8,5 @@ import org.junit.Assert.*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论