正式上线2.2版本
This commit is contained in:
@@ -34,6 +34,6 @@ dependencies {
|
||||
implementation 'com.leon:lfilepickerlibrary:1.8.0'
|
||||
//载入界面
|
||||
implementation 'com.kaopiz:kprogresshud:1.1.0'
|
||||
compile 'com.android.support:support-v4:28.0.0'
|
||||
compile 'com.android.support:recyclerview-v7:28.0.0'
|
||||
implementation 'com.android.support:support-v4:28.0.0'
|
||||
implementation 'com.android.support:recyclerview-v7:28.0.0'
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.jianrmod.plugins.harmony.Activitys;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.net.Uri;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
@@ -97,11 +98,13 @@ public class MainActivity implements BaseActivityInterface {
|
||||
TextView text1 = new TextView(context);
|
||||
Button button = new Button(context);
|
||||
Button button2 = new Button(context);
|
||||
Button button3=new Button(context);
|
||||
final Switch siwtch = new Switch(context);
|
||||
siwtch.setText("共存版");
|
||||
text1.setText("请将proj.manifest、Cocos2dxPrefsFile.xml和压缩包放到jianRMG/harmony/文件夹中");
|
||||
button.setText("创建harmony文件夹");
|
||||
button2.setText("开始");
|
||||
button3.setText("不会用?点这里");
|
||||
|
||||
siwtch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
@@ -118,6 +121,7 @@ public class MainActivity implements BaseActivityInterface {
|
||||
linearLayout.addView(button);
|
||||
linearLayout.addView(button2);
|
||||
linearLayout.addView(siwtch);
|
||||
linearLayout.addView(button3);
|
||||
|
||||
button.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
@@ -126,6 +130,7 @@ public class MainActivity implements BaseActivityInterface {
|
||||
if (file.exists()) {
|
||||
Utils.toast(context, "文件夹已存在");
|
||||
} else {
|
||||
Utils.toast(context,"已创建harmony文件夹,请将下载好的文件放入到harmony目录中");
|
||||
file.mkdirs();
|
||||
}
|
||||
}
|
||||
@@ -135,6 +140,11 @@ public class MainActivity implements BaseActivityInterface {
|
||||
public void onClick(View v) {
|
||||
hud.show();
|
||||
final File file = new File(Utils.getAppPath() + "/harmony/");
|
||||
if(!file.exists()){
|
||||
Utils.toast(context,"已创建harmony文件夹,请将下载好的文件放入到harmony目录中");
|
||||
file.mkdirs();
|
||||
return;
|
||||
}
|
||||
if (file.listFiles().length == 0) {
|
||||
Utils.toast(context, "文件夹内为空,请放入harmony文件夹中");
|
||||
return;
|
||||
@@ -186,6 +196,15 @@ public class MainActivity implements BaseActivityInterface {
|
||||
|
||||
}
|
||||
});
|
||||
button3.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent intent = new Intent();
|
||||
intent.setAction(Intent.ACTION_VIEW);
|
||||
intent.setData(Uri.parse("http://bbs.jianrmod.cn/forum.php?mod=viewthread&tid=186&extra="));
|
||||
context.startActivity(intent);
|
||||
}
|
||||
});
|
||||
return linearLayout;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ public class Data {
|
||||
public static String title="专用客户端解卡/反和谐";
|
||||
public static String appId="48B9C440405E442EBE6F5512DE585DBB";
|
||||
public static String url="http://aaa/harmony.jar";
|
||||
public static String image="#";
|
||||
public static String image="https://i.loli.net/2019/06/10/5cfe1f8f725b430506.png";
|
||||
public static String mainFunction="com.jianrmod.plugins.harmony.Activitys.MainActivity#localActivity";
|
||||
public static Integer permission=0;
|
||||
public static String version="1.0";
|
||||
public static String version="2.0";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user