Skip to content

Commit

Permalink
修复linux创建工程空白
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhichao committed Jun 4, 2021
1 parent 5efca5c commit 1b2cb46
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 120 deletions.
153 changes: 41 additions & 112 deletions 1.json
Original file line number Diff line number Diff line change
@@ -1,133 +1,62 @@
{
"access": {
"accessText": "*"
},
"appDescription": "\n API Example App.\n ",
"appId": "A6914338590058",
"appName": "CapitalOperation",
"author": {
"authorName": "NkXing",
"email": "[email protected]",
"href": "http://www.apicloud.com"
},
"content": "index.html",
"feature": [
"MerchantId": "111",
"MerchantName": "河南移动测试商户",
"state": 1,
"shopList": [
{
"forceBind": true,
"param": [
"shopId": "s1",
"shopName": "手机店",
"state": 1,
"brands": [
{
"name": "urlScheme",
"value": "wx7779c7c063a9d4d9"
"brandNum": "b1",
"brandName": "海尔"
},
{
"name": "apiKey",
"value": "wx7779c7c063a9d4d9"
}
],
"titleName": "weiXin"
},
{
"forceBind": true,
"param": [
{
"name": "urlScheme",
"value": "wb1062272715"
"brandNum": "b2",
"brandName": "小米"
},
{
"name": "apiKey",
"value": "1062272715"
"brandNum": "b2",
"brandName": "长虹"
}
],
"titleName": "sinaWeiBo"
},
{
"forceBind": true,
"param": [
"goodTypes": [
{
"name": "urlScheme",
"value": "AliPayA00000000001"
}
],
"titleName": "aliPay"
},
{
"forceBind": true,
"param": [
{
"name": "apiKey",
"value": "fef72715gshjelke"
}
],
"titleName": "baiduLocation"
},
{
"forceBind": true,
"param": [
"typeId": "t1",
"typeName": "手机通讯",
"level": 1,
"parentId": 0
},
{
"name": "android_api_key",
"value": "fef72715gshjelke"
"typeId": "t2",
"typeName": "手机",
"level": 2,
"parentId": "t1"
},
{
"name": "ios_api_key",
"value": "fef72715gshjelke"
"typeId": "t3",
"typeName": "智能手机",
"level": 3,
"parentId": "t2"
}
],
"titleName": "baiduMap"
},
{
"forceBind": true,
"param": [
"goodList": [
{
"name": "urlScheme",
"value": "tencent9c7c063a9d4d9"
"goodId": "g1",
"goodName": "小米1 6+128",
"brandNum": "b2",
"state": 1,
"typeId": "t3"
},
{
"name": "apiKey",
"value": "9c7c063a9d4d9"
"goodId": "g2",
"goodName": "小米1 4+64",
"brandNum": "b2",
"state": 1,
"typeId": "t3"
}
],
"titleName": "qq"
]
}
],
"permission": {
"bootCompleted": true,
"call": true,
"camera": true,
"contact": true,
"fileSystem": true,
"hardware": true,
"internetl": false,
"location": true,
"readPhoneState": true,
"record": true,
"sms": true
},
"preference": {
"allowKeyboardExtension": true,
"appBackground": "",
"appCertificateVerify": true,
"autoLaunch": true,
"autoUpdate": true,
"backgroundMode": "",
"checkSslTrusted": true,
"customRefreshHeader": "",
"debug": false,
"dragAndDrop": true,
"fileShare": false,
"font": "",
"forbiddenSchemes": "",
"frameBackgroundColor": "",
"fullScreen": false,
"launcher": true,
"pageBounce": true,
"querySchemes": "",
"smartUpdate": true,
"softInputBarEnabled": true,
"softInputMode": "auto",
"statusBarAppearance": true,
"urlScheme": "",
"userAgent": "",
"windowBackground": ""
},
"version": "0.0.1"
]
}
16 changes: 13 additions & 3 deletions ApicloudPlugins.iml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/resources/META-INF/plugin.xml" />
<component name="NewModuleRootManager">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/out/production/ApicloudPlugins" />
<output-test url="file://$MODULE_DIR$/out/test/ApicloudPlugins" />
<exclude-output />
Expand All @@ -14,11 +14,21 @@
<orderEntry type="library" name="fastjson-1.1.33" level="project" />
<orderEntry type="library" name="wifisync" level="project" />
<orderEntry type="library" name="wifisyncmanager" level="project" />
<orderEntry type="inheritedJdk" />
<orderEntry type="jdk" jdkName="WebStorm WS-211.7142.46" jdkType="IDEA JDK" />
<orderEntry type="module-library">
<library>
<CLASSES />
<JAVADOC />
<NATIVE>
<root url="file://$MODULE_DIR$/libs/resources" />
</NATIVE>
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/libs/resources.jar!/" />
<root url="jar://$MODULE_DIR$/libs/core-3.3.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.apicloud.plugin.Project;

import com.apicloud.plugin.run.WebStorm;
import com.apicloud.plugin.util.PrintUtil;
import com.apicloud.plugin.util.ProjectData;
import com.apicloud.plugin.util.RunProperties;
import com.intellij.ide.util.projectWizard.WebProjectTemplate;
import com.intellij.openapi.module.Module;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.NotNull;
import org.w3c.dom.Document;
Expand All @@ -31,7 +29,6 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.net.URL;
import java.util.Properties;
import java.util.Random;


Expand Down Expand Up @@ -65,8 +62,7 @@ public void generateProject(Project project, VirtualFile file, ProjectData data,
try {
String projectPath = file.getCanonicalPath();
PrintUtil.msg += "开始创建工程\n";
Properties properties = System.getProperties();
String systemPath = properties.getProperty("idea.plugins.path");
String systemPath = RunProperties.pluginsPath;
RunProperties.setAdbPath(data.getAdbPath());
PrintUtil.msg += ("当前选择创建工程类型:" + data.getType() + "\n");
if ("default".equals(data.getType())) {
Expand Down

0 comments on commit 1b2cb46

Please sign in to comment.