增加vscode相关的task和配置
This commit is contained in:
parent
8dc13687d7
commit
a80cb6c08d
4
.idea/gradle.xml
generated
4
.idea/gradle.xml
generated
@ -4,7 +4,7 @@
|
|||||||
<component name="GradleSettings">
|
<component name="GradleSettings">
|
||||||
<option name="linkedExternalProjectsSettings">
|
<option name="linkedExternalProjectsSettings">
|
||||||
<GradleProjectSettings>
|
<GradleProjectSettings>
|
||||||
<option name="testRunner" value="PLATFORM" />
|
<option name="testRunner" value="GRADLE" />
|
||||||
<option name="disableWrapperSourceDistributionNotification" value="true" />
|
<option name="disableWrapperSourceDistributionNotification" value="true" />
|
||||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
@ -17,8 +17,6 @@
|
|||||||
<option value="$PROJECT_DIR$/../../cocos/cocos2d-x/cocos/platform/android/libcocos2dx" />
|
<option value="$PROJECT_DIR$/../../cocos/cocos2d-x/cocos/platform/android/libcocos2dx" />
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
|
||||||
<option name="useQualifiedModuleNames" value="true" />
|
|
||||||
</GradleProjectSettings>
|
</GradleProjectSettings>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
1
.idea/vcs.xml
generated
1
.idea/vcs.xml
generated
@ -2,5 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
<mapping directory="$PROJECT_DIR$/../../cocos/cocos2d-x" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "android",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Android launch",
|
||||||
|
"appSrcRoot": "${workspaceRoot}/app",
|
||||||
|
"apkFile": "${workspaceRoot}/app/build/outputs/apk/debug/app-debug.apk",
|
||||||
|
"adbPort": 5037,
|
||||||
|
"preLaunchTask": "InstallDebugApp"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "android",
|
||||||
|
"request": "attach",
|
||||||
|
"name": "Android attach",
|
||||||
|
"appSrcRoot": "${workspaceRoot}/app",
|
||||||
|
"adbPort": 5037,
|
||||||
|
"processId": "${command:PickAndroidProcess}"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
77
.vscode/tasks.json
vendored
Normal file
77
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "AppSignKey",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias",
|
||||||
|
"windows": {
|
||||||
|
// "command": "${workspaceRoot}\\shell.bat first"
|
||||||
|
"command": "cd gitoscandroid; del my-release-key.jks; keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias"
|
||||||
|
// keytool -genkey -v -keystore release.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
|
||||||
|
// keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
// "panel": "new"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "CleanApp",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceRoot}/gradlew clean",
|
||||||
|
"windows": {
|
||||||
|
// "command": "${workspaceRoot}\\shell.bat first"
|
||||||
|
"command": "${workspaceRoot}\\gradlew.bat clean "
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
// "panel": "new"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "BuildDebugApp",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceRoot}/gradlew assembleDebug ",
|
||||||
|
"windows": {
|
||||||
|
// "command": "${workspaceRoot}\\shell.bat first"
|
||||||
|
"command": "${workspaceRoot}\\gradlew.bat assembleDebug "
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
// "panel": "new"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "InstallDebugApp",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceRoot}/gradlew installDebug ",
|
||||||
|
"windows": {
|
||||||
|
"command": "${workspaceRoot}\\gradlew.bat installDebug "
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
// "panel": "new"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "InstallReleaseApp",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceRoot}/gradlew installRelease ",
|
||||||
|
"windows": {
|
||||||
|
"command": "${workspaceRoot}\\gradlew.bat installRelease "
|
||||||
|
},
|
||||||
|
"group": "test",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
// "panel": "new"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
@ -35,7 +35,7 @@
|
|||||||
#include "cocos/scripting/js-bindings/manual/jsb_platform.h"
|
#include "cocos/scripting/js-bindings/manual/jsb_platform.h"
|
||||||
#include "cocos/scripting/js-bindings/manual/jsb_cocos2dx_manual.hpp"
|
#include "cocos/scripting/js-bindings/manual/jsb_cocos2dx_manual.hpp"
|
||||||
#include "cocos/scripting/js-bindings/manual/jsb_xmlhttprequest.hpp"
|
#include "cocos/scripting/js-bindings/manual/jsb_xmlhttprequest.hpp"
|
||||||
#include "JcWallet.h";
|
#include "JcWallet.h"
|
||||||
|
|
||||||
|
|
||||||
#if USE_SOCKET
|
#if USE_SOCKET
|
||||||
|
@ -113,4 +113,5 @@ dependencies {
|
|||||||
// implementation 'com.xm.permissions:XmPermissions:1.0.1'
|
// implementation 'com.xm.permissions:XmPermissions:1.0.1'
|
||||||
implementation 'pub.devrel:easypermissions:3.0.0'
|
implementation 'pub.devrel:easypermissions:3.0.0'
|
||||||
implementation 'com.github.jenly1314:zxing-lite:2.1.1'
|
implementation 'com.github.jenly1314:zxing-lite:2.1.1'
|
||||||
|
implementation project(path: ':libcocos2dx')
|
||||||
}
|
}
|
@ -16,7 +16,3 @@ window.jumpToWallet = function(url) {
|
|||||||
// url || 'wc://'
|
// url || 'wc://'
|
||||||
// )
|
// )
|
||||||
}
|
}
|
||||||
|
|
||||||
window.nativeCallback = function(funId, msg) {
|
|
||||||
console.log(`receive msg from native:: funId: ${funId}, msg: ${msg}`);
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user