|
@@ -33,6 +33,7 @@ import com.sheep.gamegroup.view.activity.ActInstallApkList;
|
|
|
import com.sheep.gamegroup.view.activity.ActMain;
|
|
import com.sheep.gamegroup.view.activity.ActMain;
|
|
|
import com.sheep.gamegroup.view.activity.ActSheepApkList;
|
|
import com.sheep.gamegroup.view.activity.ActSheepApkList;
|
|
|
import com.sheep.gamegroup.view.activity.ActSheepPngList;
|
|
import com.sheep.gamegroup.view.activity.ActSheepPngList;
|
|
|
|
|
+import com.sheep.gamegroup.view.activity.ActTestExpression;
|
|
|
import com.sheep.gamegroup.view.activity.ActWeb;
|
|
import com.sheep.gamegroup.view.activity.ActWeb;
|
|
|
import com.sheep.gamegroup.view.activity.NotificationsUtils;
|
|
import com.sheep.gamegroup.view.activity.NotificationsUtils;
|
|
|
import com.sheep.gamegroup.view.dialog.DialogGameOrTaskOrGift;
|
|
import com.sheep.gamegroup.view.dialog.DialogGameOrTaskOrGift;
|
|
@@ -222,7 +223,7 @@ public class TestUtil {
|
|
|
* @param activity
|
|
* @param activity
|
|
|
*/
|
|
*/
|
|
|
public static void test(final Activity activity) {
|
|
public static void test(final Activity activity) {
|
|
|
- final String[] items = {"复制token","复制打点数据","从jenkins下载小绵羊安装包","龙猫竞猜","龙猫竞猜-scheme",
|
|
|
|
|
|
|
+ final String[] items = {"复制token","复制打点数据","从jenkins下载小绵羊安装包","测试表情包","龙猫竞猜","龙猫竞猜-scheme",
|
|
|
"有米科技测试","有米科技","手机型号测试","测试通知栏", "测试自定义通知栏","测试自定义通知栏2",
|
|
"有米科技测试","有米科技","手机型号测试","测试通知栏", "测试自定义通知栏","测试自定义通知栏2",
|
|
|
"开启通知栏权限0","开启通知栏权限1","开启通知栏权限2","开启通知栏权限3",
|
|
"开启通知栏权限0","开启通知栏权限1","开启通知栏权限2","开启通知栏权限3",
|
|
|
"开启通知栏权限","通知栏权限1","通知栏权限2","通知栏权限8.0","测试支付","测试内部h5", "测试外部h5",
|
|
"开启通知栏权限","通知栏权限1","通知栏权限2","通知栏权限8.0","测试支付","测试内部h5", "测试外部h5",
|
|
@@ -239,6 +240,9 @@ public class TestUtil {
|
|
|
@Override
|
|
@Override
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
switch (items[which]) {
|
|
switch (items[which]) {
|
|
|
|
|
+ case "测试表情包":
|
|
|
|
|
+ testExpression(activity);
|
|
|
|
|
+ break;
|
|
|
case "测试通知栏":
|
|
case "测试通知栏":
|
|
|
testNotification(activity);
|
|
testNotification(activity);
|
|
|
break;
|
|
break;
|
|
@@ -528,6 +532,12 @@ public class TestUtil {
|
|
|
}).create();
|
|
}).create();
|
|
|
dialog.show();
|
|
dialog.show();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //测试表情包
|
|
|
|
|
+ private static void testExpression(Activity activity) {
|
|
|
|
|
+ activity.startActivity(new Intent(activity, ActTestExpression.class));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
//测试直接显示通知栏
|
|
//测试直接显示通知栏
|
|
|
private static void testNotification(Activity activity) {
|
|
private static void testNotification(Activity activity) {
|
|
|
String id = "my_channel_01";
|
|
String id = "my_channel_01";
|