20211019-tzx
This commit is contained in:
parent
5f3c658a6d
commit
c4f81f63e6
2
MyApplication/.idea/compiler.xml
generated
2
MyApplication/.idea/compiler.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="CompilerConfiguration">
|
<component name="CompilerConfiguration">
|
||||||
<bytecodeTargetLevel target="11" />
|
<bytecodeTargetLevel target="1.6" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
4
MyApplication/.idea/gradle.xml
generated
4
MyApplication/.idea/gradle.xml
generated
@ -7,12 +7,12 @@
|
|||||||
<option name="testRunner" value="PLATFORM" />
|
<option name="testRunner" value="PLATFORM" />
|
||||||
<option name="distributionType" value="LOCAL" />
|
<option name="distributionType" value="LOCAL" />
|
||||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
<option name="gradleHome" value="E:\DevEco Studio 3.0.0.600\tools\gradle" />
|
<option name="gradleHome" value="C:\Program Files\Huawei\DevEco Studio 3.0.0.600\tools\gradle" />
|
||||||
<option name="gradleJvm" value="#JAVA_INTERNAL" />
|
<option name="gradleJvm" value="#JAVA_INTERNAL" />
|
||||||
<option name="modules">
|
<option name="modules">
|
||||||
<set>
|
<set>
|
||||||
<option value="$PROJECT_DIR$" />
|
<option value="$PROJECT_DIR$" />
|
||||||
<option value="$PROJECT_DIR$/entry" />
|
<option value="$PROJECT_DIR$/app" />
|
||||||
</set>
|
</set>
|
||||||
</option>
|
</option>
|
||||||
<option name="resolveModulePerSourceSet" value="false" />
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
15
MyApplication/.idea/jarRepositories.xml
generated
15
MyApplication/.idea/jarRepositories.xml
generated
@ -21,5 +21,20 @@
|
|||||||
<option name="name" value="maven" />
|
<option name="name" value="maven" />
|
||||||
<option name="url" value="https://repo.huaweicloud.com/repository/maven/" />
|
<option name="url" value="https://repo.huaweicloud.com/repository/maven/" />
|
||||||
</remote-repository>
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="BintrayJCenter" />
|
||||||
|
<option name="name" value="BintrayJCenter" />
|
||||||
|
<option name="url" value="https://jcenter.bintray.com/" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="maven" />
|
||||||
|
<option name="name" value="maven" />
|
||||||
|
<option name="url" value="https://jitpack.io" />
|
||||||
|
</remote-repository>
|
||||||
|
<remote-repository>
|
||||||
|
<option name="id" value="Google" />
|
||||||
|
<option name="name" value="Google" />
|
||||||
|
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||||
|
</remote-repository>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
6
MyApplication/.idea/vcs.xml
generated
Normal file
6
MyApplication/.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -1,33 +1,29 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
apply plugin: 'com.huawei.ohos.app'
|
|
||||||
|
|
||||||
//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510
|
|
||||||
ohos {
|
|
||||||
compileSdkVersion 6
|
|
||||||
}
|
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
google()
|
||||||
url 'https://repo.huaweicloud.com/repository/maven/'
|
jcenter()
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url 'https://developer.huawei.com/repo/'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.huawei.ohos:hap:3.0.3.2'
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
||||||
classpath 'com.huawei.ohos:decctest:1.2.6.0'
|
classpath 'com.meituan.android.walle:plugin:1.1.6'
|
||||||
|
|
||||||
|
|
||||||
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
google()
|
||||||
url 'https://repo.huaweicloud.com/repository/maven/'
|
jcenter()
|
||||||
}
|
maven { url 'https://jitpack.io' }
|
||||||
maven {
|
|
||||||
url 'https://developer.huawei.com/repo/'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task clean(type: Delete) {
|
||||||
|
delete rootProject.buildDir
|
||||||
}
|
}
|
||||||
|
5
MyApplication/entry/.gitignore
vendored
5
MyApplication/entry/.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
/build
|
/build
|
||||||
/node_modules
|
/.gradle
|
||||||
|
.idea
|
||||||
|
/.idea
|
||||||
|
app.iml
|
@ -1,26 +1,91 @@
|
|||||||
apply plugin: 'com.huawei.ohos.hap'
|
apply plugin: 'com.android.application'
|
||||||
apply plugin: 'com.huawei.ohos.decctest'
|
apply plugin: 'walle'
|
||||||
//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510
|
|
||||||
ohos {
|
android {
|
||||||
compileSdkVersion 6
|
compileSdkVersion 28
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
compatibleSdkVersion 6
|
applicationId "com.heweather.owp"
|
||||||
|
minSdkVersion 19
|
||||||
|
targetSdkVersion 28
|
||||||
|
versionCode 3
|
||||||
|
versionName "1.0.2"
|
||||||
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
|
}
|
||||||
|
signingConfigs {
|
||||||
|
he {
|
||||||
|
keyAlias "heweather"
|
||||||
|
keyPassword "He123qwe."
|
||||||
|
storeFile rootProject.file("he.jks")
|
||||||
|
storePassword "He123qwe."
|
||||||
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
debug {
|
||||||
|
minifyEnabled false
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
signingConfig signingConfigs.he
|
||||||
|
}
|
||||||
release {
|
release {
|
||||||
proguardOpt {
|
minifyEnabled false
|
||||||
proguardEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
rulesFiles 'proguard-rules.pro'
|
signingConfig signingConfigs.he
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
jniLibs.srcDirs = ['libs']
|
||||||
|
}
|
||||||
|
|
||||||
|
// Move the tests to tests/java, tests/res, etc...
|
||||||
|
// instrumentTest.setRoot('tests')
|
||||||
|
|
||||||
|
// Move the build types to build-types/<type>
|
||||||
|
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
|
||||||
|
// This moves them out of them default location under src/<type>/... which would
|
||||||
|
// conflict with src/ being used by the main source set.
|
||||||
|
// Adding new build types or product flavors should be accompanied
|
||||||
|
// by a similar customization.
|
||||||
|
debug.setRoot('build-types/debug')
|
||||||
|
release.setRoot('build-types/release')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//生成渠道包 ./gradlew clean assembleReleaseChannels
|
||||||
|
//支持 productFlavors ./gradlew clean assembleMeituanReleaseChannels
|
||||||
|
//生成单个渠道包 ./gradlew clean assembleReleaseChannels -PchannelList=google
|
||||||
|
//生成多个渠道包 ./gradlew clean assembleReleaseChannels -PchannelList=google,dianping
|
||||||
|
walle {
|
||||||
|
// 指定渠道包的输出路径
|
||||||
|
apkOutputFolder = new File("${project.buildDir}/channels")
|
||||||
|
// 定制渠道包的APK的文件名称
|
||||||
|
apkFileNameFormat = '${appName}-${channel}-${buildType}-v${versionName}-${versionCode}-${buildTime}.apk'
|
||||||
|
// 渠道配置文件
|
||||||
|
channelFile = new File("${project.getProjectDir()}/channel")
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
testImplementation 'junit:junit:4.13.1'
|
implementation 'com.android.support:appcompat-v7:28.0.0'
|
||||||
ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.200'
|
implementation 'com.android.support:design:28.0.0'
|
||||||
}
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
||||||
decc {
|
implementation 'com.android.support:support-v4:28.0.0'
|
||||||
supportType = ['html','xml']
|
testImplementation 'junit:junit:4.12'
|
||||||
|
androidTestImplementation 'com.android.support.test:runner:1.0.1'
|
||||||
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||||
|
implementation 'joda-time:joda-time:2.10'
|
||||||
|
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
||||||
|
implementation 'com.zhy:okhttputils:2.6.2'
|
||||||
|
implementation files('libs/android-logging-log4j-1.0.3.jar')
|
||||||
|
implementation files('libs/log4j-1.2.17.jar')
|
||||||
|
implementation 'com.google.code.gson:gson:2.8.0'
|
||||||
|
implementation files('libs/AMap_Location_V4.0.1_20180426.jar')
|
||||||
|
implementation files('libs/HeWeather_sdk.jar')
|
||||||
}
|
}
|
||||||
|
1
MyApplication/entry/proguard-rules.pro
vendored
1
MyApplication/entry/proguard-rules.pro
vendored
@ -1 +0,0 @@
|
|||||||
# config module specific ProGuard rules here.
|
|
@ -1,51 +0,0 @@
|
|||||||
{
|
|
||||||
"app": {
|
|
||||||
"bundleName": "com.example.myapplication",
|
|
||||||
"vendor": "example",
|
|
||||||
"version": {
|
|
||||||
"code": 1000000,
|
|
||||||
"name": "1.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"deviceConfig": {},
|
|
||||||
"module": {
|
|
||||||
"package": "com.example.myapplication",
|
|
||||||
"name": ".MyApplication",
|
|
||||||
"mainAbility": "com.example.myapplication.MainAbility",
|
|
||||||
"deviceType": [
|
|
||||||
"phone",
|
|
||||||
"tablet",
|
|
||||||
"tv",
|
|
||||||
"wearable",
|
|
||||||
"car"
|
|
||||||
],
|
|
||||||
"distro": {
|
|
||||||
"deliveryWithInstall": true,
|
|
||||||
"moduleName": "entry",
|
|
||||||
"moduleType": "entry",
|
|
||||||
"installationFree": false
|
|
||||||
},
|
|
||||||
"abilities": [
|
|
||||||
{
|
|
||||||
"skills": [
|
|
||||||
{
|
|
||||||
"entities": [
|
|
||||||
"entity.system.home"
|
|
||||||
],
|
|
||||||
"actions": [
|
|
||||||
"action.system.home"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"orientation": "unspecified",
|
|
||||||
"visible": true,
|
|
||||||
"name": "com.example.myapplication.MainAbility",
|
|
||||||
"icon": "$media:icon",
|
|
||||||
"description": "$string:mainability_description",
|
|
||||||
"label": "$string:entry_MainAbility",
|
|
||||||
"type": "page",
|
|
||||||
"launchType": "standard"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,5 +1,5 @@
|
|||||||
package com.heweather.owp.adapter;
|
package com.heweather.owp.adapter;
|
||||||
/**/
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.support.annotation.NonNull;
|
import android.support.annotation.NonNull;
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"string": [
|
|
||||||
{
|
|
||||||
"name": "entry_MainAbility",
|
|
||||||
"value": "entry_MainAbility"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_description",
|
|
||||||
"value": "Java_Empty Ability"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_HelloWorld",
|
|
||||||
"value": "Hello World"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<shape xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
|
||||||
ohos:shape="rectangle">
|
|
||||||
<solid
|
|
||||||
ohos:color="#FFFFFF"/>
|
|
||||||
</shape>
|
|
@ -1,19 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<DirectionalLayout
|
|
||||||
xmlns:ohos="http://schemas.huawei.com/res/ohos"
|
|
||||||
ohos:height="match_parent"
|
|
||||||
ohos:width="match_parent"
|
|
||||||
ohos:alignment="center"
|
|
||||||
ohos:orientation="vertical">
|
|
||||||
|
|
||||||
<Text
|
|
||||||
ohos:id="$+id:text_helloworld"
|
|
||||||
ohos:height="match_content"
|
|
||||||
ohos:width="match_content"
|
|
||||||
ohos:background_element="$graphic:background_ability_main"
|
|
||||||
ohos:layout_alignment="horizontal_center"
|
|
||||||
ohos:text="$string:mainability_HelloWorld"
|
|
||||||
ohos:text_size="40vp"
|
|
||||||
/>
|
|
||||||
|
|
||||||
</DirectionalLayout>
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.6 KiB |
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"string": [
|
|
||||||
{
|
|
||||||
"name": "entry_MainAbility",
|
|
||||||
"value": "entry_MainAbility"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_description",
|
|
||||||
"value": "Java_Empty Ability"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_HelloWorld",
|
|
||||||
"value": "Hello World"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"string": [
|
|
||||||
{
|
|
||||||
"name": "entry_MainAbility",
|
|
||||||
"value": "entry_MainAbility"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_description",
|
|
||||||
"value": "Java_Empty Ability"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mainability_HelloWorld",
|
|
||||||
"value": "你好,世界"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
package com.example.myapplication;
|
|
||||||
|
|
||||||
import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
|
||||||
|
|
||||||
public class ExampleOhosTest {
|
|
||||||
@Test
|
|
||||||
public void testBundleName() {
|
|
||||||
final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName();
|
|
||||||
assertEquals("com.example.myapplication", actualBundleName);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
package com.example.myapplication;
|
|
||||||
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
public class ExampleTest {
|
|
||||||
@Test
|
|
||||||
public void onStart() {
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +1,13 @@
|
|||||||
# Project-wide Gradle settings.
|
# Project-wide Gradle settings.
|
||||||
# IDE (e.g. DevEco Studio) users:
|
# IDE (e.g. Android Studio) users:
|
||||||
# Gradle settings configured through the IDE *will override*
|
# Gradle settings configured through the IDE *will override*
|
||||||
# any settings specified in this file.
|
# any settings specified in this file.
|
||||||
# For more details on how to configure your build environment visit
|
# For more details on how to configure your build environment visit
|
||||||
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
# Specifies the JVM arguments used for the daemon process.
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
# The setting is particularly useful for tweaking memory settings.
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
# If the Chinese output is garbled, please configure the following parameter.
|
org.gradle.jvmargs=-Xmx1536m
|
||||||
# This function is enabled by default when the DevEco Studio builds the hap/app,if you need disable gradle parallel,you should set org.gradle.parallel false.
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
# more information see https://docs.gradle.org/current/userguide/performance.html
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
# org.gradle.parallel=false
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
# org.gradle.jvmargs=-Dfile.encoding=GBK
|
# org.gradle.parallel=true
|
||||||
|
BIN
MyApplication/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
MyApplication/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
|
||||||
distributionPath=wrapper/dists
|
|
||||||
distributionUrl=https\://repo.huaweicloud.com/gradle/gradle-6.3-bin.zip
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
|
||||||
zipStorePath=wrapper/dists
|
|
51
MyApplication/gradlew
vendored
51
MyApplication/gradlew
vendored
@ -1,21 +1,5 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
#
|
|
||||||
# Copyright 2015 the original author or authors.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##
|
##
|
||||||
## Gradle start up script for UN*X
|
## Gradle start up script for UN*X
|
||||||
@ -44,7 +28,7 @@ APP_NAME="Gradle"
|
|||||||
APP_BASE_NAME=`basename "$0"`
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
DEFAULT_JVM_OPTS=""
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD="maximum"
|
MAX_FD="maximum"
|
||||||
@ -125,8 +109,8 @@ if $darwin; then
|
|||||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
if $cygwin ; then
|
||||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||||
@ -154,19 +138,19 @@ if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
|||||||
else
|
else
|
||||||
eval `echo args$i`="\"$arg\""
|
eval `echo args$i`="\"$arg\""
|
||||||
fi
|
fi
|
||||||
i=`expr $i + 1`
|
i=$((i+1))
|
||||||
done
|
done
|
||||||
case $i in
|
case $i in
|
||||||
0) set -- ;;
|
(0) set -- ;;
|
||||||
1) set -- "$args0" ;;
|
(1) set -- "$args0" ;;
|
||||||
2) set -- "$args0" "$args1" ;;
|
(2) set -- "$args0" "$args1" ;;
|
||||||
3) set -- "$args0" "$args1" "$args2" ;;
|
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -175,9 +159,14 @@ save () {
|
|||||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
APP_ARGS=`save "$@"`
|
APP_ARGS=$(save "$@")
|
||||||
|
|
||||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||||
|
|
||||||
|
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
||||||
|
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
fi
|
||||||
|
|
||||||
exec "$JAVACMD" "$@"
|
exec "$JAVACMD" "$@"
|
||||||
|
21
MyApplication/gradlew.bat
vendored
21
MyApplication/gradlew.bat
vendored
@ -1,19 +1,3 @@
|
|||||||
@rem
|
|
||||||
@rem Copyright 2015 the original author or authors.
|
|
||||||
@rem
|
|
||||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
@rem you may not use this file except in compliance with the License.
|
|
||||||
@rem You may obtain a copy of the License at
|
|
||||||
@rem
|
|
||||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
@rem
|
|
||||||
@rem Unless required by applicable law or agreed to in writing, software
|
|
||||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
@rem See the License for the specific language governing permissions and
|
|
||||||
@rem limitations under the License.
|
|
||||||
@rem
|
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%" == "" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@ -29,11 +13,8 @@ if "%DIRNAME%" == "" set DIRNAME=.
|
|||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
set DEFAULT_JVM_OPTS=
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
@ -1 +1 @@
|
|||||||
include ':entry'
|
include ':app'
|
||||||
|
Reference in New Issue
Block a user