q
BIN
MyApplication2/.gradle/6.3/executionHistory/executionHistory.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileChanges/last-build.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileContent/fileContent.lock
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/fileHashes.bin
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/fileHashes.lock
Normal file
BIN
MyApplication2/.gradle/6.3/fileHashes/resourceHashesCache.bin
Normal file
0
MyApplication2/.gradle/6.3/gc.properties
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/classAnalysis.bin
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/jarAnalysis.bin
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/javaCompile.lock
Normal file
BIN
MyApplication2/.gradle/6.3/javaCompile/taskHistory.bin
Normal file
@ -0,0 +1,2 @@
|
||||
#Thu Dec 23 07:45:58 CST 2021
|
||||
gradle.version=6.3
|
BIN
MyApplication2/.gradle/buildOutputCleanup/outputFiles.bin
Normal file
BIN
MyApplication2/.gradle/checksums/checksums.lock
Normal file
0
MyApplication2/.gradle/vcs-1/gc.properties
Normal file
20
MyApplication2/.idea/MyApplication2.iml
generated
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id="MyApplication2" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
<configuration>
|
||||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
|
||||
<option name="BUILDABLE" value="false" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/build" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
BIN
MyApplication2/.idea/caches/build_file_checksums.ser
generated
Normal file
9
MyApplication2/.idea/libraries/Gradle__hamcrest_core_1_3.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: hamcrest-core-1.3">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.3/42a25dc3219429f0e5d060061f71acb49bf010a0/hamcrest-core-1.3.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__junit_4_13.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: junit-4.13">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.13/e49ccba652b735c93bd6e6f59760d8254cf597dd/junit-4.13.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__junit_4_13_1.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: junit-4.13.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/junit/junit/4.13.1/cdd00374f1fee76b11e2a9d127405aa3f6be5b6a/junit-4.13.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/libraries/Gradle__runner_1_0_0_200.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Gradle: runner-1.0.0.200">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.huawei.ohos.testkit/runner/1.0.0.200/db197b4a9c96bb98eb7888e957867588f55251a9/runner-1.0.0.200.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
9
MyApplication2/.idea/modules.xml
generated
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/MyApplication2.iml" filepath="$PROJECT_DIR$/.idea/MyApplication2.iml" group="MyApplication2" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/entry/entry.iml" filepath="$PROJECT_DIR$/.idea/modules/entry/entry.iml" group="MyApplication2/entry" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
80
MyApplication2/.idea/modules/entry/entry.iml
generated
Normal file
@ -0,0 +1,80 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":entry" external.linked.project.path="$MODULE_DIR$/../../../entry" external.root.project.path="$MODULE_DIR$/../../.." external.system.id="GRADLE" external.system.module.group="MyApplication2" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android-gradle" name="Android-Gradle">
|
||||
<configuration>
|
||||
<option name="GRADLE_PROJECT_PATH" value=":entry" />
|
||||
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" />
|
||||
<option name="LAST_KNOWN_AGP_VERSION" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
<configuration>
|
||||
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/../../../entry/build" />
|
||||
<option name="BUILDABLE" value="false" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="harmony" name="harmony">
|
||||
<configuration>
|
||||
<option name="SELECTED_BUILD_VARIANT" value="debug" />
|
||||
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
|
||||
<option name="GENERATE_RESOURCES_TASK_NAME" value="generateDebugResources" />
|
||||
<option name="RESOURCES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../entry/src/main/resources;file://$MODULE_DIR$/../../../entry/src/debug/resources" />
|
||||
<option name="OHOS_TEST_RESOURCES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/../../../entry/src/ohosTest/resources;file://$MODULE_DIR$/../../../entry/src/debugOhosTest/resources" />
|
||||
<option name="MODULE_TYPE" value="entry" />
|
||||
<option name="DEBUGGABLE" value="true" />
|
||||
<option name="HAP_OUTPUT_FOLDER_PATH" value="D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\outputs\hap\debug" />
|
||||
<option name="PREVIEW_EXECUTE_TASK_NAME" value="generateDebugJsManifest" />
|
||||
<option name="JS_MANIFEST_PATH" value="D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\js\debug\jsManifest" />
|
||||
<option name="SUPERVISUAL_SOURCE_DIR_PATH" value="D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\supervisual" />
|
||||
<option name="JS_SOURCE_DIR_PATH" value="D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js" />
|
||||
<option name="ETS_SOURCE_DIR_PATH" value="D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\ets" />
|
||||
<option name="MERGE_JS_SRC" value="false" />
|
||||
<option name="COMPILE_MODE_TYPE" value="d8" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="ohos" name="Ohos">
|
||||
<configuration>
|
||||
<option name="configurationProperty" value="This is option under configuration" />
|
||||
<option name="gradleProjectPath" value=":entry" />
|
||||
<option name="moduleExternalName" value="entry" />
|
||||
<option name="moduleName" value="entry" />
|
||||
</configuration>
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/../../../entry/build/intermediates/javac/debug/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/../../../entry/build/intermediates/javac/debugTest/classes" />
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$/../../../entry">
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/generated/source/annotation/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/build/intermediates/original_res/debug" type="java-resource" generated="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/js" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/js" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/../../../entry/src/ohosTest/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.cxx" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.gradle" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/.preview" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/../../../entry/build" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="SDK(API Version 7)" jdkType="SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: hamcrest-core-1.3" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: junit-4.13" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: runner-1.0.0.200" level="project" />
|
||||
<orderEntry type="library" exported="" scope="TEST" name="Gradle: junit-4.13.1" level="project" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="Gradle: ACE JS-common-3.0.0.0" type="ACE">
|
||||
<CLASSES />
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="file://$USER_HOME$/AppData/Local/Huawei/Sdk/js/3.0.0.0/api/common" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
164
MyApplication2/.idea/workspace.xml
generated
Normal file
@ -0,0 +1,164 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AutoImportSettings">
|
||||
<option name="autoReloadType" value="SELECTIVE" />
|
||||
</component>
|
||||
<component name="BranchesTreeState">
|
||||
<expand>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
|
||||
<item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="fdfa9fc7-52d4-4664-93d6-b2410bd9b936" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/1/0/10f965cf51fe14a5ef0ca2ebefb1bd7e4607eeb2" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/3/6/36d48c2c0aa8cb6b91428b9d2d791dcae782d636" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/3/b/3bb84a6effd773d95ed647597ffe3ad387fdfbcf" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/6/2/6288971498872deb62c5e285d192d813e22b1c1c" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/b/d/bded84c8d7c3dc43c805144b684b7e76d317f963" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/e/7/e76da2df200fc79b254b005f068d568bf8c2b7ec" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/e/b/eb4272ef57a8e412e241acf56c46fd3c2ccd3848" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/index.pb" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sonarlint/issuestore/index.pb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/entry/src/main/config.json" beforeDir="false" afterPath="$PROJECT_DIR$/entry/src/main/config.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/entry/src/main/js/default/pages/index/index.hml" beforeDir="false" afterPath="$PROJECT_DIR$/entry/src/main/js/default/pages/index/index.hml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/entry/src/main/js/default/pages/index/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/entry/src/main/js/default/pages/index/index.js" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/entry/src/main/js/default/pages/page0/page0.js" beforeDir="false" afterPath="$PROJECT_DIR$/entry/src/main/js/default/pages/page0/page0.js" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="ExternalProjectsData">
|
||||
<projectState path="$PROJECT_DIR$">
|
||||
<ProjectState />
|
||||
</projectState>
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
||||
</component>
|
||||
<component name="HiLogFilter">
|
||||
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
|
||||
<option name="TOOL_WINDOW_CUSTOM_FILTER" value="tzx" />
|
||||
<option name="TOOL_WINDOW_LOG_LEVEL" value="verbose" />
|
||||
<option name="TOOL_WINDOW_USE_AS_REGEX" value="false" />
|
||||
</component>
|
||||
<component name="ProjectId" id="22f7HjDgTiDuohs6eUVtgoz50AT" />
|
||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
||||
<ConfirmationsSetting value="2" id="Add" />
|
||||
</component>
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
<option name="showLibraryContents" value="true" />
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="project.ide.version" value="3.0.0.601" />
|
||||
<property name="project.structure.select" value="Modules" />
|
||||
<property name="restartRequiresConfirmation" value="false" />
|
||||
</component>
|
||||
<component name="RunManager" selected="HarmonyOS App.entry">
|
||||
<configuration name="entry" type="OhosDebugTask" factoryName="HarmonyOS App" activateToolWindowBeforeRun="false">
|
||||
<module name="entry" />
|
||||
<option name="DEPLOY" value="true" />
|
||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||
<option name="DEPLOY_AS_INSTANT" value="false" />
|
||||
<option name="ARTIFACT_NAME" value="" />
|
||||
<option name="PM_INSTALL_OPTIONS" value="" />
|
||||
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="" />
|
||||
<option name="ACTIVITY_EXTRA_FLAGS" value="" />
|
||||
<option name="MODE" value="default_activity" />
|
||||
<option name="CLEAR_LOGCAT" value="false" />
|
||||
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
|
||||
<option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
|
||||
<option name="FORCE_STOP_RUNNING_APP" value="true" />
|
||||
<option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
|
||||
<option name="DEBUGGER_TYPE" value="Auto" />
|
||||
<Auto />
|
||||
<Dual />
|
||||
<DualJs />
|
||||
<Java />
|
||||
<Js />
|
||||
<Native />
|
||||
<Profilers>
|
||||
<option name="ADVANCED_PROFILING_ENABLED" value="false" />
|
||||
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
|
||||
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Sample Java Methods" />
|
||||
</Profilers>
|
||||
<option name="DEEP_LINK" value="" />
|
||||
<option name="ACTIVITY_CLASS" value="" />
|
||||
<DEPLOY_MULTI_HAP>false</DEPLOY_MULTI_HAP>
|
||||
<REINSTALL_APPLICATION>false</REINSTALL_APPLICATION>
|
||||
<method v="2">
|
||||
<option name="Ohos.Build.BeforeRunTask" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<configuration name="Super App" type="OhosSuperAppDebugTask" factoryName="HarmonyOS Super App">
|
||||
<method v="2">
|
||||
<option name="Ohos.Build.BeforeRunTask" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="fdfa9fc7-52d4-4664-93d6-b2410bd9b936" name="Default Changelist" comment="" />
|
||||
<created>1640216706138</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1640216706138</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
<option name="oldMeFiltersMigrated" value="true" />
|
||||
</component>
|
||||
<component name="WindowStateProjectService">
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.bottom" timestamp="1640269193065">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.bottom/0.0.1536.834@0.0.1536.834" timestamp="1640269193065" />
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.center" timestamp="1640269193064">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.center/0.0.1536.834@0.0.1536.834" timestamp="1640269193064" />
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.left" timestamp="1640269193064">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.left/0.0.1536.834@0.0.1536.834" timestamp="1640269193064" />
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.right" timestamp="1640269193064">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state width="1493" height="140" key="GridCell.Tab.0.right/0.0.1536.834@0.0.1536.834" timestamp="1640269193064" />
|
||||
<state x="320" y="94" width="950" height="693" key="SettingsEditor" timestamp="1640269206173">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="320" y="94" width="950" height="693" key="SettingsEditor/0.0.1536.834@0.0.1536.834" timestamp="1640269206173" />
|
||||
<state x="461" y="277" key="edit.logcat.filter.dialog.dimensions" timestamp="1640243936439">
|
||||
<screen x="0" y="0" width="1536" height="834" />
|
||||
</state>
|
||||
<state x="461" y="277" key="edit.logcat.filter.dialog.dimensions/0.0.1536.834@0.0.1536.834" timestamp="1640243936439" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Automatically generated file. DO NOT MODIFY
|
||||
*/
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class BuildConfig {
|
||||
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
||||
public static final String PACKAGE_NAME = "com.xcl20481.myapplication";
|
||||
public static final String BUILD_TYPE = "debug";
|
||||
public static final int COMPILE_SDK_VERSION = 7;
|
||||
public static final int VERSION_CODE = 1000000;
|
||||
public static final String VERSION_NAME = "1.1.0";
|
||||
public static final String BUNDLE_NAME = "com.xcl20481.myapplication";
|
||||
}
|
BIN
MyApplication2/entry/build/generated/source/r/R.jar
Normal file
@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright(c) Huawei Technologies Co., Ltd. 2019 - 2020. All rights reserved.
|
||||
* Description: This header was automatically generated by restool from the resource data it found.
|
||||
* It provides resource index information for applications, and should not be modified by hand.
|
||||
*/
|
||||
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class ResourceTable {
|
||||
public static final int Media_icon = 0x1000002;
|
||||
public static final int Media_icon2 = 0x1000003;
|
||||
|
||||
public static final int String_mainability_description = 0x1000000;
|
||||
public static final int String_xcl2048 = 0x1000001;
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\BuildConfig.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\MainAbility.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\MyApplication.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\javac\debug\classes\com\xcl20481\myapplication\ResourceTable.class
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:xcl2048",
|
||||
"versionName": "1.1.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 6,
|
||||
"pages": [
|
||||
"pages/page0/page0",
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,125 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js":
|
||||
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\app.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\app.js ***!
|
||||
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
var _default = {
|
||||
onCreate: function onCreate() {},
|
||||
onDestroy: function onDestroy() {}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
;
|
||||
(exports["default"] || module.exports).manifest = __webpack_require__(/*! !!./lib/manifest-plugin.js!../../../../build/intermediates/js/debug/jsManifest/default/manifest.json */ "./lib/manifest-plugin.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json");
|
||||
|
||||
function requireModule(moduleName) {
|
||||
const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
|
||||
'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
|
||||
var target = ''
|
||||
if (systemList.includes(moduleName.replace('@', ''))) {
|
||||
target = $app_require$('@app-module/' + moduleName.substring(1));
|
||||
return target;
|
||||
}
|
||||
var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
|
||||
if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
|
||||
target = ohosplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
if (typeof systemplugin !== 'undefined') {
|
||||
target = systemplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
target = requireNapi(shortName);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/manifest-plugin.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\build\\intermediates\\js\\debug\\jsManifest\\default\\manifest.json":
|
||||
/*!*************************************************************************************************************************************************!*\
|
||||
!*** ./lib/manifest-plugin.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\js\debug\jsManifest\default\manifest.json ***!
|
||||
\*************************************************************************************************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = JSON.parse('{"appID":"com.xcl20481.myapplication","appName":"$string:xcl2048","versionName":"1.1.0","versionCode":1000000,"minPlatformVersion":6,"pages":["pages/page0/page0","pages/index/index"],"deviceType":["phone","tablet","tv","wearable"],"window":{"autoDesignWidth":true,"designWidth":720}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||||
(() => {
|
||||
/*!*******************************************************************************************!*\
|
||||
!*** d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\app.js?entry ***!
|
||||
\*******************************************************************************************/
|
||||
var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js")
|
||||
|
||||
$app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-application/app',undefined,undefined)
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=app.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"file":"./app.js","mappings":";;;;;;;;;;;;;;;eACe;AACXA,EAAAA,QADW,sBACA,CACV,CAFU;AAGXC,EAAAA,SAHW,uBAGC,CACX;AAJU;;AAMf;AAAC,CAACC,OAAO,WAAP,IAAmBC,MAAM,CAACD,OAA3B,EAAoCE,QAApC,GAA+CC,mBAAO,CAAC,kQAAD,CAAtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCPD;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBA,mBAAmB,mBAAO,CAAC,wiCAAs0B;;AAEj2B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,iE","sources":["webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js","webpack:///webpack/bootstrap","webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\app.js?entry"],"names":["onCreate","onDestroy","exports","module","manifest","require"],"sourceRoot":""}
|
After Width: | Height: | Size: 152 KiB |
After Width: | Height: | Size: 210 KiB |
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "Hello",
|
||||
"world": "World"
|
||||
}
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
{
|
||||
"strings": {
|
||||
"hello": "您好",
|
||||
"world": "世界"
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"appID": "com.xcl20481.myapplication",
|
||||
"appName": "$string:xcl2048",
|
||||
"versionName": "1.1.0",
|
||||
"versionCode": 1000000,
|
||||
"minPlatformVersion": 6,
|
||||
"pages": [
|
||||
"pages/page0/page0",
|
||||
"pages/index/index"
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"window": {
|
||||
"autoDesignWidth": true,
|
||||
"designWidth": 720
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
system.router,system.app,system.brightness,system.vibrator,system.prompt,system.brightness,system.vibrator,system.prompt
|
@ -0,0 +1,647 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./lib/json.js!./lib/style.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css":
|
||||
/*!*********************************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/style.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\index\index.css ***!
|
||||
\*********************************************************************************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = {
|
||||
".container": {
|
||||
"width": "227px",
|
||||
"height": "227px",
|
||||
"flexDirection": "column",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".score": {
|
||||
"textAlign": "center",
|
||||
"width": "70px",
|
||||
"height": "17px",
|
||||
"letterSpacing": "0px",
|
||||
"fontSize": "11.5px",
|
||||
"marginTop": "1px",
|
||||
"marginBottom": "3px",
|
||||
"color": "#eb0bc7f6"
|
||||
},
|
||||
".best": {
|
||||
"textAlign": "center",
|
||||
"width": "60px",
|
||||
"height": "17px",
|
||||
"fontSize": "12.5px",
|
||||
"letterSpacing": "0px",
|
||||
"marginTop": "8.3px",
|
||||
"color": "#64f6f3"
|
||||
},
|
||||
".tile-wrap": {
|
||||
"width": "150px",
|
||||
"height": "150px",
|
||||
"flexWrap": "wrap",
|
||||
"backgroundColor": "#FFFFFF"
|
||||
},
|
||||
".tile": {
|
||||
"width": "35px",
|
||||
"height": "35px",
|
||||
"marginTop": "2px",
|
||||
"marginLeft": "2px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".btn": {
|
||||
"width": "61.5px",
|
||||
"height": "20.5px",
|
||||
"backgroundColor": "#155ddc",
|
||||
"marginTop": "5px",
|
||||
"fontSize": "13px",
|
||||
"marginBottom": "3px"
|
||||
},
|
||||
".text": {
|
||||
"fontSize": "13px",
|
||||
"color": "#000000"
|
||||
},
|
||||
".stack": {
|
||||
"width": "150px",
|
||||
"height": "150px"
|
||||
},
|
||||
".subcontainer": {
|
||||
"width": "150px",
|
||||
"height": "150px",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center",
|
||||
"backgroundColor": "#000000"
|
||||
},
|
||||
".gameover": {
|
||||
"fontSize": "30px",
|
||||
"color": "#FF7500"
|
||||
}
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/json.js!./lib/template.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml":
|
||||
/*!************************************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/template.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\index\index.hml ***!
|
||||
\************************************************************************************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = {
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:1",
|
||||
"className": "container"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"container"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:2",
|
||||
"className": "best",
|
||||
"value": function () {return decodeURI('Best:') + (this.best)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"best"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:5",
|
||||
"className": "score",
|
||||
"value": function () {return decodeURI('Score:') + (this.score)}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"score"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:8",
|
||||
"className": "stack"
|
||||
},
|
||||
"type": "stack",
|
||||
"classList": [
|
||||
"stack"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:9",
|
||||
"className": "tile-wrap"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile-wrap"
|
||||
],
|
||||
"events": {
|
||||
"swipe": "onSwipe",
|
||||
"longpress": "ToAbout"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:10",
|
||||
"className": "tile"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"tile"
|
||||
],
|
||||
"repeat": function () {return this.tiles},
|
||||
"style": {
|
||||
"backgroundColor": "#000000"
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:11",
|
||||
"className": "text",
|
||||
"value": function () {return this.$item.text}
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"text"
|
||||
],
|
||||
"style": {
|
||||
"color": "#FFFFFF"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:16",
|
||||
"className": "subcontainer",
|
||||
"show": function () {return this.isShow}
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"subcontainer"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:17",
|
||||
"className": "gameover",
|
||||
"value": "Gameover!"
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"gameover"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/index/index:22",
|
||||
"className": "btn",
|
||||
"type": "button",
|
||||
"value": "Restart!"
|
||||
},
|
||||
"type": "input",
|
||||
"classList": [
|
||||
"btn"
|
||||
],
|
||||
"onBubbleEvents": {
|
||||
"click": "onInit"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
"default": obj
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _interopRequireDefault;
|
||||
module.exports.default = module.exports, module.exports.__esModule = true;
|
||||
|
||||
function requireModule(moduleName) {
|
||||
const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
|
||||
'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
|
||||
var target = ''
|
||||
if (systemList.includes(moduleName.replace('@', ''))) {
|
||||
target = $app_require$('@app-module/' + moduleName.substring(1));
|
||||
return target;
|
||||
}
|
||||
var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
|
||||
if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
|
||||
target = ohosplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
if (typeof systemplugin !== 'undefined') {
|
||||
target = systemplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
target = requireNapi(shortName);
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js":
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\index\index.js ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _system = _interopRequireDefault(requireModule("@system.brightness"));
|
||||
|
||||
var _system2 = _interopRequireDefault(requireModule("@system.vibrator"));
|
||||
|
||||
var _system3 = _interopRequireDefault(requireModule("@system.prompt"));
|
||||
|
||||
var numbers, newNumbers;
|
||||
var _default = {
|
||||
data: {
|
||||
score: 0,
|
||||
best: 0,
|
||||
tiles: [],
|
||||
isShow: false
|
||||
},
|
||||
onInit: function onInit() {
|
||||
this.isShow = false;
|
||||
this.score = 0;
|
||||
this.tiles = [{
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}, {
|
||||
text: ""
|
||||
}];
|
||||
numbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
_system2["default"].vibrate({
|
||||
mode: 'short',
|
||||
success: function success(ret) {
|
||||
console.log('tzx vibrate is successful');
|
||||
},
|
||||
fail: function fail(ret) {
|
||||
console.log('tzx vibrate is failed');
|
||||
},
|
||||
complete: function complete(ret) {
|
||||
console.log('tzx vibrate is completed');
|
||||
}
|
||||
});
|
||||
|
||||
this.supplyNumber();
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
|
||||
_system["default"].setKeepScreenOn({
|
||||
keepScreenOn: true
|
||||
});
|
||||
|
||||
_system["default"].setMode({
|
||||
mode: 1
|
||||
});
|
||||
},
|
||||
supplyNumber: function supplyNumber() {
|
||||
var positions = [];
|
||||
|
||||
for (var i = 0; i <= 15; i++) {
|
||||
if (!newNumbers[i]) positions.push(i);
|
||||
}
|
||||
|
||||
var h = Math.floor(Math.random() * positions.length);
|
||||
|
||||
if (Math.random() <= 0.8) {
|
||||
newNumbers[positions[h]] = 2;
|
||||
} else {
|
||||
newNumbers[positions[h]] = 4;
|
||||
}
|
||||
},
|
||||
ToAbout: function ToAbout() {
|
||||
_system3["default"].showToast({
|
||||
message: '这是小草林开发的2048小游戏',
|
||||
duration: 4567
|
||||
});
|
||||
},
|
||||
onSwipe: function onSwipe(e) {
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
var start = 0,
|
||||
differ = 0,
|
||||
step = 0;
|
||||
|
||||
switch (e.direction) {
|
||||
case 'left':
|
||||
start = 0;
|
||||
differ = 1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
start = 3;
|
||||
differ = -1;
|
||||
step = 4;
|
||||
break;
|
||||
|
||||
case 'up':
|
||||
start = 0;
|
||||
differ = 4;
|
||||
step = 1;
|
||||
break;
|
||||
|
||||
case 'down':
|
||||
start = 12;
|
||||
differ = -4;
|
||||
step = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
var ids;
|
||||
|
||||
for (var j = 0; j <= 3; j++) {
|
||||
ids = this.getIds(start, differ);
|
||||
var before = null;
|
||||
var noZeros = 0;
|
||||
|
||||
for (var k = 0; k <= 3; k++) {
|
||||
var id = ids[k];
|
||||
var number = numbers[id];
|
||||
|
||||
if (number != 0) {
|
||||
if (number == before) {
|
||||
this.score += number * 2;
|
||||
newNumbers[ids[noZeros - 1]] *= 2;
|
||||
before = null;
|
||||
} else {
|
||||
newNumbers[ids[noZeros]] = number;
|
||||
before = number;
|
||||
noZeros += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
start += step;
|
||||
}
|
||||
|
||||
if (this.best >= this.score) {
|
||||
this.best = this.best;
|
||||
} else {
|
||||
this.best = this.score;
|
||||
}
|
||||
|
||||
if (numbers.toString() != newNumbers.toString()) {
|
||||
this.supplyNumber();
|
||||
this.updateView();
|
||||
newNumbers = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
||||
|
||||
if (this.isGameOver() == true) {
|
||||
this.isShow = true;
|
||||
}
|
||||
}
|
||||
},
|
||||
getIds: function getIds(start, differ) {
|
||||
var ids = [];
|
||||
|
||||
for (var z = 4; z >= 1; z--) {
|
||||
ids.push(start);
|
||||
start += differ;
|
||||
}
|
||||
|
||||
return ids;
|
||||
},
|
||||
updateView: function updateView() {
|
||||
for (var x = 0; x <= 15; x++) {
|
||||
if (newNumbers[x] != 0) {
|
||||
this.tiles[x].text = newNumbers[x].toString();
|
||||
} else {
|
||||
this.tiles[x].text = "";
|
||||
}
|
||||
}
|
||||
|
||||
numbers = newNumbers;
|
||||
},
|
||||
isGameOver: function isGameOver() {
|
||||
if (this.isGridsFull() == true && this.isGridsNotMergeable() == true) {
|
||||
_system2["default"].vibrate({
|
||||
mode: 'long',
|
||||
success: function success(ret) {
|
||||
console.log('vibrate is successful');
|
||||
},
|
||||
fail: function fail(ret) {
|
||||
console.log('vibrate is failed');
|
||||
},
|
||||
complete: function complete(ret) {
|
||||
console.log('vibrate is completed');
|
||||
}
|
||||
});
|
||||
|
||||
console.info('游戏结束');
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isGridsFull: function isGridsFull() {
|
||||
if (numbers.indexOf(0) == -1) {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
isGridsNotMergeable: function isGridsNotMergeable() {
|
||||
for (var l = 0; l <= 15; l++) {
|
||||
if (l <= 14) {
|
||||
if (numbers[l] == numbers[l + 1] && (l + 1) % 4 != 0) return false;
|
||||
}
|
||||
|
||||
if (l <= 11) {
|
||||
if (numbers[l] == numbers[l + 4]) return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
|
||||
function requireModule(moduleName) {
|
||||
const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
|
||||
'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
|
||||
var target = ''
|
||||
if (systemList.includes(moduleName.replace('@', ''))) {
|
||||
target = $app_require$('@app-module/' + moduleName.substring(1));
|
||||
return target;
|
||||
}
|
||||
var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
|
||||
if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
|
||||
target = ohosplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
if (typeof systemplugin !== 'undefined') {
|
||||
target = systemplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
target = requireNapi(shortName);
|
||||
return target;
|
||||
}
|
||||
|
||||
var moduleOwn = exports.default || module.exports;
|
||||
var accessors = ['public', 'protected', 'private'];
|
||||
if (moduleOwn.data && accessors.some(function (acc) {
|
||||
return moduleOwn[acc];
|
||||
})) {
|
||||
throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
|
||||
} else if (!moduleOwn.data) {
|
||||
moduleOwn.data = {};
|
||||
moduleOwn._descriptor = {};
|
||||
accessors.forEach(function(acc) {
|
||||
var accType = typeof moduleOwn[acc];
|
||||
if (accType === 'object') {
|
||||
moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
|
||||
for (var name in moduleOwn[acc]) {
|
||||
moduleOwn._descriptor[name] = {access : acc};
|
||||
}
|
||||
} else if (accType === 'function') {
|
||||
console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
|
||||
}
|
||||
});
|
||||
}}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||||
(() => {
|
||||
/*!**********************************************************************************************************!*\
|
||||
!*** d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\index\index.hml?entry ***!
|
||||
\**********************************************************************************************************/
|
||||
var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.hml")
|
||||
var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.css")
|
||||
var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\index\\index.js")
|
||||
|
||||
$app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
$app_module$.exports.template = $app_template$
|
||||
|
||||
$app_module$.exports.style = $app_style$
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-component/index',undefined,undefined)
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=index.js.map
|
@ -0,0 +1,397 @@
|
||||
/******/ (() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./lib/json.js!./lib/style.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.css":
|
||||
/*!*********************************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/style.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\page0\page0.css ***!
|
||||
\*********************************************************************************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = {
|
||||
".container": {
|
||||
"width": "227px",
|
||||
"height": "227px",
|
||||
"flexDirection": "column",
|
||||
"justifyContent": "center",
|
||||
"alignItems": "center"
|
||||
},
|
||||
".title": {
|
||||
"textAlign": "center",
|
||||
"width": "140px",
|
||||
"height": "62px",
|
||||
"letterSpacing": "0px",
|
||||
"fontSize": "19px",
|
||||
"marginTop": "40px",
|
||||
"marginBottom": "3px",
|
||||
"color": "#eb0750cb"
|
||||
},
|
||||
".title1": {
|
||||
"textAlign": "center",
|
||||
"width": "180px",
|
||||
"height": "150px",
|
||||
"fontSize": "15.5px",
|
||||
"marginTop": "5px",
|
||||
"marginBottom": "5px",
|
||||
"color": "#eb0597bb"
|
||||
},
|
||||
".btn": {
|
||||
"width": "65.5px",
|
||||
"height": "35.5px",
|
||||
"backgroundColor": "#155ddc",
|
||||
"marginTop": "5px",
|
||||
"fontSize": "13px",
|
||||
"marginBottom": "3px"
|
||||
},
|
||||
".btn1": {
|
||||
"width": "65.5px",
|
||||
"height": "35.5px",
|
||||
"backgroundColor": "#155ddc",
|
||||
"marginTop": "5px",
|
||||
"fontSize": "13px",
|
||||
"marginBottom": "5px"
|
||||
}
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/json.js!./lib/template.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.hml":
|
||||
/*!************************************************************************************************************************************!*\
|
||||
!*** ./lib/json.js!./lib/template.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\page0\page0.hml ***!
|
||||
\************************************************************************************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = {
|
||||
"attr": {
|
||||
"debugLine": "pages/page0/page0:1",
|
||||
"className": "container"
|
||||
},
|
||||
"type": "div",
|
||||
"classList": [
|
||||
"container"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/page0/page0:2",
|
||||
"className": "title",
|
||||
"value": "《2048小游戏》"
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"title"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/page0/page0:5",
|
||||
"className": "title1",
|
||||
"value": "开始游戏即默认同意我的隐私声明:www.xuegao-tzx.top/g2048h.html"
|
||||
},
|
||||
"type": "text",
|
||||
"classList": [
|
||||
"title1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/page0/page0:8",
|
||||
"className": "btn",
|
||||
"type": "button",
|
||||
"value": "开始"
|
||||
},
|
||||
"type": "input",
|
||||
"classList": [
|
||||
"btn"
|
||||
],
|
||||
"onBubbleEvents": {
|
||||
"click": "ToStart"
|
||||
}
|
||||
},
|
||||
{
|
||||
"attr": {
|
||||
"debugLine": "pages/page0/page0:9",
|
||||
"className": "btn1",
|
||||
"type": "button",
|
||||
"value": "退出"
|
||||
},
|
||||
"type": "input",
|
||||
"classList": [
|
||||
"btn1"
|
||||
],
|
||||
"onBubbleEvents": {
|
||||
"click": "ToClose"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
|
||||
/*!**********************************************************************!*\
|
||||
!*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
|
||||
\**********************************************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
"default": obj
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = _interopRequireDefault;
|
||||
module.exports.default = module.exports, module.exports.__esModule = true;
|
||||
|
||||
function requireModule(moduleName) {
|
||||
const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
|
||||
'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
|
||||
var target = ''
|
||||
if (systemList.includes(moduleName.replace('@', ''))) {
|
||||
target = $app_require$('@app-module/' + moduleName.substring(1));
|
||||
return target;
|
||||
}
|
||||
var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
|
||||
if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
|
||||
target = ohosplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
if (typeof systemplugin !== 'undefined') {
|
||||
target = systemplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
target = requireNapi(shortName);
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.js":
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\page0\page0.js ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
||||
|
||||
module.exports = function(module, exports, $app_require$){"use strict";
|
||||
|
||||
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports["default"] = void 0;
|
||||
|
||||
var _system = _interopRequireDefault(requireModule("@system.router"));
|
||||
|
||||
var _system2 = _interopRequireDefault(requireModule("@system.app"));
|
||||
|
||||
var _system3 = _interopRequireDefault(requireModule("@system.brightness"));
|
||||
|
||||
var _system4 = _interopRequireDefault(requireModule("@system.vibrator"));
|
||||
|
||||
var _system5 = _interopRequireDefault(requireModule("@system.prompt"));
|
||||
|
||||
var _default = {
|
||||
onInit: function onInit() {
|
||||
_system3["default"].setKeepScreenOn({
|
||||
keepScreenOn: true
|
||||
});
|
||||
|
||||
_system3["default"].setMode({
|
||||
mode: 1
|
||||
});
|
||||
},
|
||||
onSwipe: function onSwipe(e) {
|
||||
switch (e.direction) {
|
||||
case 'left':
|
||||
break;
|
||||
|
||||
case 'right':
|
||||
break;
|
||||
|
||||
case 'up':
|
||||
break;
|
||||
|
||||
case 'down':
|
||||
break;
|
||||
}
|
||||
},
|
||||
ToStart: function ToStart() {
|
||||
_system4["default"].vibrate({
|
||||
mode: 'short',
|
||||
success: function success(ret) {
|
||||
console.log('tzx vibrate is successful');
|
||||
},
|
||||
fail: function fail(ret) {
|
||||
console.log('tzx vibrate is failed');
|
||||
},
|
||||
complete: function complete(ret) {
|
||||
console.log('tzx vibrate is completed');
|
||||
}
|
||||
});
|
||||
|
||||
_system5["default"].showToast({
|
||||
message: '开始成功,By Xcl!',
|
||||
duration: 3579
|
||||
});
|
||||
|
||||
_system["default"].replace({
|
||||
uri: "pages/index/index"
|
||||
});
|
||||
},
|
||||
ToClose: function ToClose() {
|
||||
_system4["default"].vibrate({
|
||||
mode: 'short',
|
||||
success: function success(ret) {
|
||||
console.log('tzx vibrate is successful');
|
||||
},
|
||||
fail: function fail(ret) {
|
||||
console.log('tzx vibrate is failed');
|
||||
},
|
||||
complete: function complete(ret) {
|
||||
console.log('tzx vibrate is completed');
|
||||
}
|
||||
});
|
||||
|
||||
_system2["default"].terminate();
|
||||
}
|
||||
};
|
||||
exports["default"] = _default;
|
||||
|
||||
function requireModule(moduleName) {
|
||||
const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
|
||||
'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
|
||||
var target = ''
|
||||
if (systemList.includes(moduleName.replace('@', ''))) {
|
||||
target = $app_require$('@app-module/' + moduleName.substring(1));
|
||||
return target;
|
||||
}
|
||||
var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
|
||||
if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
|
||||
target = ohosplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
if (typeof systemplugin !== 'undefined') {
|
||||
target = systemplugin;
|
||||
for (let key of shortName.split('.')) {
|
||||
target = target[key];
|
||||
if(!target) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (typeof target !== 'undefined') {
|
||||
return target;
|
||||
}
|
||||
}
|
||||
target = requireNapi(shortName);
|
||||
return target;
|
||||
}
|
||||
|
||||
var moduleOwn = exports.default || module.exports;
|
||||
var accessors = ['public', 'protected', 'private'];
|
||||
if (moduleOwn.data && accessors.some(function (acc) {
|
||||
return moduleOwn[acc];
|
||||
})) {
|
||||
throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
|
||||
} else if (!moduleOwn.data) {
|
||||
moduleOwn.data = {};
|
||||
moduleOwn._descriptor = {};
|
||||
accessors.forEach(function(acc) {
|
||||
var accType = typeof moduleOwn[acc];
|
||||
if (accType === 'object') {
|
||||
moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
|
||||
for (var name in moduleOwn[acc]) {
|
||||
moduleOwn._descriptor[name] = {access : acc};
|
||||
}
|
||||
} else if (accType === 'function') {
|
||||
console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
|
||||
}
|
||||
});
|
||||
}}
|
||||
/* generated by ace-loader */
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/************************************************************************/
|
||||
var __webpack_exports__ = {};
|
||||
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
||||
(() => {
|
||||
/*!**********************************************************************************************************!*\
|
||||
!*** d:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main\js\default\pages\page0\page0.hml?entry ***!
|
||||
\**********************************************************************************************************/
|
||||
var $app_template$ = __webpack_require__(/*! !!./lib/json.js!./lib/template.js!./page0.hml */ "./lib/json.js!./lib/template.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.hml")
|
||||
var $app_style$ = __webpack_require__(/*! !!./lib/json.js!./lib/style.js!./page0.css */ "./lib/json.js!./lib/style.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.css")
|
||||
var $app_script$ = __webpack_require__(/*! !!./lib/script.js!./node_modules/babel-loader?presets[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=C:\Users\honor\AppData\Local\Huawei\Sdk\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./page0.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.js")
|
||||
|
||||
$app_define$('@app-component/page0', [], function($app_require$, $app_exports$, $app_module$) {
|
||||
|
||||
$app_script$($app_module$, $app_exports$, $app_require$)
|
||||
if ($app_exports$.__esModule && $app_exports$.default) {
|
||||
$app_module$.exports = $app_exports$.default
|
||||
}
|
||||
|
||||
$app_module$.exports.template = $app_template$
|
||||
|
||||
$app_module$.exports.style = $app_style$
|
||||
|
||||
})
|
||||
$app_bootstrap$('@app-component/page0',undefined,undefined)
|
||||
})();
|
||||
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=page0.js.map
|
@ -0,0 +1 @@
|
||||
{"version":3,"file":"./pages/page0/page0.js","mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;AC3CA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AC/DA,SAASA,sBAAT,CAAgCC,GAAhC,EAAqC;AACnC,SAAOA,GAAG,IAAIA,GAAG,CAACC,UAAX,GAAwBD,GAAxB,GAA8B;AACnC,eAAWA;AADwB,GAArC;AAGD;;AAEDE,MAAM,CAACC,OAAP,GAAiBJ,sBAAjB;AACAG,sBAAA,GAA4BA,MAAM,CAACC,OAAnC,EAA4CD,yBAAA,GAA4B,IAAxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACPA;;AACA;;AACA;;AACA;;AACA;;eACe;AACXE,EAAAA,MADW,oBACF;AACLC,wBAAWC,eAAX,CAA2B;AAACC,MAAAA,YAAY,EAAE;AAAf,KAA3B;;AACAF,wBAAWG,OAAX,CAAmB;AAACC,MAAAA,IAAI,EAAE;AAAP,KAAnB;AACH,GAJU;AAKXC,EAAAA,OALW,mBAKHC,CALG,EAKA;AACP,YAAQA,CAAC,CAACC,SAAV;AACI,WAAK,MAAL;AACI;;AACJ,WAAK,OAAL;AACI;;AACJ,WAAK,IAAL;AACI;;AACJ,WAAK,MAAL;AACI;AARR;AAUH,GAhBU;AAiBXC,EAAAA,OAjBW,qBAiBF;AACLC,wBAASC,OAAT,CAAiB;AACbN,MAAAA,IAAI,EAAE,OADO;AAEbO,MAAAA,OAAO,EAAE,iBAASC,GAAT,EAAc;AACnBC,QAAAA,OAAO,CAACC,GAAR,CAAY,2BAAZ;AACH,OAJY;AAKbC,MAAAA,IAAI,EAAE,cAASH,GAAT,EAAc;AAChBC,QAAAA,OAAO,CAACC,GAAR,CAAY,uBAAZ;AACH,OAPY;AAQbE,MAAAA,QAAQ,EAAE,kBAASJ,GAAT,EAAc;AACpBC,QAAAA,OAAO,CAACC,GAAR,CAAY,0BAAZ;AACH;AAVY,KAAjB;;AAYAG,wBAAOC,SAAP,CAAiB;AACbC,MAAAA,OAAO,EAAE,cADI;AAEbC,MAAAA,QAAQ,EAAE;AAFG,KAAjB;;AAIAC,uBAAOC,OAAP,CAAe;AACXC,MAAAA,GAAG,EAAE;AADM,KAAf;AAGH,GArCU;AAsCXC,EAAAA,OAtCW,qBAsCF;AACLf,wBAASC,OAAT,CAAiB;AACbN,MAAAA,IAAI,EAAE,OADO;AAEbO,MAAAA,OAAO,EAAE,iBAASC,GAAT,EAAc;AACnBC,QAAAA,OAAO,CAACC,GAAR,CAAY,2BAAZ;AACH,OAJY;AAKbC,MAAAA,IAAI,EAAE,cAASH,GAAT,EAAc;AAChBC,QAAAA,OAAO,CAACC,GAAR,CAAY,uBAAZ;AACH,OAPY;AAQbE,MAAAA,QAAQ,EAAE,kBAASJ,GAAT,EAAc;AACpBC,QAAAA,OAAO,CAACC,GAAR,CAAY,0BAAZ;AACH;AAVY,KAAjB;;AAYAW,wBAAIC,SAAJ;AACH;AApDU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UCLf;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;;;;;ACtBA,qBAAqB,mBAAO,CAAC,8LAAuN;AACpP,kBAAkB,mBAAO,CAAC,wLAAoN;AAC9O,mBAAmB,mBAAO,CAAC,y1BAA+nB;;AAE1pB;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,CAAC;AACD,2D","sources":["webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.css","webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.hml","webpack:///C:\\Users\\honor\\AppData\\Local\\Huawei\\Sdk\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\runtime\\helpers\\interopRequireDefault.js","webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.js","webpack:///webpack/bootstrap","webpack:///d:\\Github\\2048-HarmonyOS-Full\\MyApplication2\\entry\\src\\main\\js\\default\\pages\\page0\\page0.hml?entry"],"names":["_interopRequireDefault","obj","__esModule","module","exports","onInit","brightness","setKeepScreenOn","keepScreenOn","setMode","mode","onSwipe","e","direction","ToStart","vibrator","vibrate","success","ret","console","log","fail","complete","prompt","showToast","message","duration","router","replace","uri","ToClose","app","terminate"],"sourceRoot":""}
|
@ -0,0 +1,78 @@
|
||||
{
|
||||
"app": {
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"vendor": "xcl20481",
|
||||
"apiVersion": {
|
||||
"compatible": 6,
|
||||
"target": 7,
|
||||
"releaseType": "Beta1"
|
||||
},
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.1.0"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"keepAlive": true,
|
||||
"debug": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"name": ".MyApplication",
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"distro": {
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry",
|
||||
"moduleType": "entry",
|
||||
"installationFree": false
|
||||
},
|
||||
"abilities": [
|
||||
{
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"description": "$string:mainability_description",
|
||||
"icon": "$media:icon2",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"visible": true,
|
||||
"skills": [
|
||||
{
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
],
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"js": [
|
||||
{
|
||||
"name": "default",
|
||||
"pages": [
|
||||
"pages/page0/page0",
|
||||
"pages/index/index"
|
||||
],
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"reqPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.VIBRATE"
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"package": "com.xcl20481.myapplication"
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
"D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\src\main"
|
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="mainability_description">"JS_Empty Ability"</string>
|
||||
<string name="xcl2048">"xcl2048"</string>
|
||||
</resources>
|
@ -0,0 +1,78 @@
|
||||
{
|
||||
"app": {
|
||||
"apiVersion": {
|
||||
"compatible": 6,
|
||||
"releaseType": "Beta1",
|
||||
"target": 7
|
||||
},
|
||||
"vendor": "xcl20481",
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.1.0"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"keepAlive": true,
|
||||
"debug": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"abilities": [
|
||||
{
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"visible": true,
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"icon": "$media:icon2",
|
||||
"description": "$string:mainability_description",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"launchType": "standard",
|
||||
"homeAbility": true
|
||||
}
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"distro": {
|
||||
"moduleType": "entry",
|
||||
"installationFree": false,
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry"
|
||||
},
|
||||
"package": "com.xcl20481.myapplication",
|
||||
"name": ".MyApplication",
|
||||
"js": [
|
||||
{
|
||||
"pages": [
|
||||
"pages/page0/page0",
|
||||
"pages/index/index"
|
||||
],
|
||||
"name": "default",
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"reqPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.VIBRATE"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
media icon 0x1000002
|
||||
media icon2 0x1000003
|
||||
string mainability_description 0x1000000
|
||||
string xcl2048 0x1000001
|
@ -0,0 +1,81 @@
|
||||
{
|
||||
"app": {
|
||||
"apiVersion": {
|
||||
"compatible": 6,
|
||||
"releaseType": "Beta1",
|
||||
"target": 7
|
||||
},
|
||||
"vendor": "xcl20481",
|
||||
"bundleName": "com.xcl20481.myapplication",
|
||||
"version": {
|
||||
"code": 1000000,
|
||||
"name": "1.1.0"
|
||||
}
|
||||
},
|
||||
"deviceConfig": {
|
||||
"default": {
|
||||
"debug": true,
|
||||
"keepAlive": true
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"abilities": [
|
||||
{
|
||||
"iconId": 16777219,
|
||||
"skills": [
|
||||
{
|
||||
"entities": [
|
||||
"entity.system.home"
|
||||
],
|
||||
"actions": [
|
||||
"action.system.home"
|
||||
]
|
||||
}
|
||||
],
|
||||
"descriptionId": 16777216,
|
||||
"visible": true,
|
||||
"labelId": 16777217,
|
||||
"icon": "$media:icon2",
|
||||
"name": "com.xcl20481.myapplication.MainAbility",
|
||||
"description": "$string:mainability_description",
|
||||
"label": "$string:xcl2048",
|
||||
"type": "page",
|
||||
"homeAbility": true,
|
||||
"launchType": "standard"
|
||||
}
|
||||
],
|
||||
"deviceType": [
|
||||
"phone",
|
||||
"tablet",
|
||||
"tv",
|
||||
"wearable"
|
||||
],
|
||||
"mainAbility": "com.xcl20481.myapplication.MainAbility",
|
||||
"distro": {
|
||||
"moduleType": "entry",
|
||||
"installationFree": false,
|
||||
"deliveryWithInstall": true,
|
||||
"moduleName": "entry"
|
||||
},
|
||||
"package": "com.xcl20481.myapplication",
|
||||
"name": ".MyApplication",
|
||||
"js": [
|
||||
{
|
||||
"pages": [
|
||||
"pages/page0/page0",
|
||||
"pages/index/index"
|
||||
],
|
||||
"name": "default",
|
||||
"window": {
|
||||
"designWidth": 720,
|
||||
"autoDesignWidth": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"reqPermissions": [
|
||||
{
|
||||
"name": "ohos.permission.VIBRATE"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,5 @@
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\shell\debug\build\javac\classes\com\xcl20481\myapplication\MainAbilityShellActivity.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\shell\debug\build\javac\classes\com\xcl20481\myapplication\R$drawable.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\shell\debug\build\javac\classes\com\xcl20481\myapplication\R$string.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\shell\debug\build\javac\classes\com\xcl20481\myapplication\R.class
|
||||
D:\Github\2048-HarmonyOS-Full\MyApplication2\entry\build\intermediates\shell\debug\build\javac\classes\com\xcl20481\myapplication\ShellMyApplication.class
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xcl20481.myapplication" android:versionCode="1000000" android:versionName="1.1.0">
|
||||
|
||||
<uses-feature android:name="zidane.software.ability" android:required="false"/>
|
||||
|
||||
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29"/>
|
||||
|
||||
<uses-permission android:name="ohos.permission.VIBRATE"/>
|
||||
|
||||
<application android:usesCleartextTraffic="false" android:icon="@drawable/icon2" android:directBootAware="false" android:allowBackup="false" android:label="@string/xcl2048" android:name="com.xcl20481.myapplication.ShellMyApplication" android:persistent="true" android:debuggable="true">
|
||||
|
||||
<meta-data android:value="true" android:name="permZA"/>
|
||||
|
||||
<activity android:icon="@drawable/icon2" android:windowSoftInputMode="adjustResize" android:label="@string/xcl2048" android:name="com.xcl20481.myapplication.MainAbilityShellActivity" android:launchMode="standard" android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
After Width: | Height: | Size: 6.0 KiB |
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,18 @@
|
||||
/* AUTO-GENERATED FILE. DO NOT MODIFY.
|
||||
*
|
||||
* This class was automatically generated by the
|
||||
* aapt tool from the resource data it found. It
|
||||
* should not be modified by hand.
|
||||
*/
|
||||
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
public final class R {
|
||||
public static final class drawable {
|
||||
public static final int icon2=0x7f010000;
|
||||
}
|
||||
public static final class string {
|
||||
public static final int mainability_description=0x7f020000;
|
||||
public static final int xcl2048=0x7f020001;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.xcl20481.myapplication" android:versionCode="1000000" android:versionName="1.1.0">
|
||||
<uses-feature android:name="zidane.software.ability" android:required="false"/>
|
||||
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29"/>
|
||||
<uses-permission android:name="ohos.permission.VIBRATE"/>
|
||||
<application android:usesCleartextTraffic="false" android:icon="@drawable/icon2" android:directBootAware="false" android:allowBackup="false" android:label="@string/xcl2048" android:name="com.xcl20481.myapplication.ShellMyApplication" android:persistent="true" android:debuggable="true">
|
||||
<meta-data android:value="true" android:name="permZA"/>
|
||||
</application>
|
||||
</manifest>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.xcl20481.myapplication" android:versionCode="1000000" android:versionName="1.1.0">
|
||||
|
||||
<uses-feature android:name="zidane.software.ability" android:required="false"/>
|
||||
|
||||
<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29"/>
|
||||
|
||||
<uses-permission android:name="ohos.permission.VIBRATE"/>
|
||||
|
||||
<application android:usesCleartextTraffic="false" android:icon="@drawable/icon2" android:directBootAware="false" android:allowBackup="false" android:label="@string/xcl2048" android:name="com.xcl20481.myapplication.ShellMyApplication" android:persistent="true">
|
||||
|
||||
<meta-data android:value="true" android:name="permZA"/>
|
||||
|
||||
<activity android:icon="@drawable/icon2" android:windowSoftInputMode="adjustResize" android:label="@string/xcl2048" android:name="com.xcl20481.myapplication.MainAbilityShellActivity" android:launchMode="standard" android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
</application>
|
||||
|
||||
</manifest>
|
@ -0,0 +1,11 @@
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
import android.os.Bundle;
|
||||
import ohos.abilityshell.AbilityShellActivity;
|
||||
|
||||
public class MainAbilityShellActivity extends AbilityShellActivity {
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package com.xcl20481.myapplication;
|
||||
|
||||
import ohos.ace.ability.AceApplication;
|
||||
|
||||
public class ShellMyApplication extends AceApplication {
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 6.0 KiB |
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<resources>
|
||||
<string name="mainability_description">"JS_Empty Ability"</string>
|
||||
<string name="xcl2048">"xcl2048"</string>
|
||||
</resources>
|