1,gradlew命令
./gradlew clean clean项目./gradlew build 构建项目/gradlew assembleDebug or /gradlew aD 编译并打Debug包./gradlew assembleRelease or /gradlew aR 编译并打Release的包./gradlew installRelease or /gradlew iR Release模式打包并安装./gradlew installDebug or /gradlew iD Debug模式打包并安装./gradlew uninstallRelease or ./gradlew uR 卸载Release模式包./gradlew uninstallDebug or ./gradlew uD 卸载Debug模式包
SENRSL:sample senrsl$
./gradlew --help
USAGE: gradlew [option...]
[task...]
-?, -h, --help
Shows this help message.
-a, --no-rebuild Do
not rebuild project dependencies. [deprecated]
-b, --build-file
Specify the build file.
--build-cache
Enables the Gradle build cache. Gradle will try to reuse
outputs from previous builds. [incubating]
-c, --settings-file
Specify the settings file.
--configure-on-demand
Configure necessary projects only. Gradle will attempt to
reduce configuration time for large multi-project builds.
[incubating]
--console
Specifies which type of console output to generate. Values
are 'plain', 'auto' (default), 'rich' or 'verbose'.
--continue
Continue task execution after a task failure.
-D, --system-prop
Set system property of the JVM (e.g. -Dmyprop=myvalue).
-d, --debug
Log in debug mode (includes normal stacktrace).
--daemon
Uses the Gradle Daemon to run the build. Starts the Daemon
if not running.
--foreground
Starts the Gradle Daemon in the foreground. [incubating]
-g, --gradle-user-home
Specifies the gradle user home directory.
-I, --init-script
Specify an initialization script.
-i, --info
Set log level to info.
--include-build
Include the specified build in the composite. [incubating]
-m, --dry-run
Run the builds with all task actions disabled.
--max-workers
Configure the number of concurrent workers Gradle is allowed
to use. [incubating]
--no-build-cache
Disables the Gradle build cache. [incubating]
--no-configure-on-demand
Disables the use of configuration on demand. [incubating]
--no-daemon Do
not use the Gradle daemon to run the build. Useful
occasionally if you have configured Gradle to always run
with the daemon by default.
--no-parallel
Disables parallel execution to build projects. [incubating]
--no-scan
Disables the creation of a build scan. For more information
about build scans, please visit https://gradle.com/build-scans.
[incubating]
--offline
Execute the build without accessing network resources.
-P, --project-prop
Set project property for the build script (e.g.
-Pmyprop=myvalue).
-p, --project-dir
Specifies the start directory for Gradle. Defaults to
current directory.
--parallel
Build projects in parallel. Gradle will attempt to
determine the optimal number of executor threads to use.
[incubating]
--profile
Profile build execution time and generates a report in the
<build_dir>/reports/profile directory.
--project-cache-dir
Specify the project-specific cache directory. Defaults to
.gradle in the root project directory.
-q, --quiet
Log errors only.
--recompile-scripts
Force build script recompiling. [deprecated]
--refresh-dependencies
Refresh the state of dependencies.
--rerun-tasks
Ignore previously cached task results.
-S, --full-stacktrace
Print out the full (very verbose) stacktrace for all
exceptions.
-s, --stacktrace
Print out the stacktrace for all exceptions.
--scan
Creates a build scan. Gradle will emit a warning if the
build scan plugin has not been applied. (https://gradle.com/build-scans)
[incubating]
--status
Shows status of running and recently stopped Gradle
Daemon(s).
--stop
Stops the Gradle Daemon if it is running.
-t, --continuous
Enables continuous build. Gradle does not exit and will
re-execute tasks when task file inputs change. [incubating]
-u, --no-search-upward
Don't search in parent folders for a settings file.
-v, --version
Print version info.
-w, --warn
Set log level to warn.
-x, --exclude-task
Specify a task to be excluded from execution.
SENRSL:sample senrsl$
2,Mac分割文件
SENRSL:test senrsl$ zip - app-1101-0218-10-14-44.zip | split -b 30madding: app-1101-0218-10-14-44.zip (stored 0%)SENRSL:test senrsl$ cat x* > fuk.zipSENRSL:test senrsl$
3,android 透明度
默认的颜色代码为六位,直接在前面加透明度代码变成八位;
如 #777777 --> #99777777
透明度100% :FF
透明度90% :E6
透明度80%: CC
透明度70%: B3
透明度60%: 99
半透明50%: 80
透明度40%: 66
透明度30%: 4D
透明度20%: 33
透明度10%: 1A
透明度00%: 00
4,git flow
1)流程
开发基于 develop;
有新功能时,拉取到feature,增加新功能完成合并回develop;
快要上线时,拉取合并develop到release,此时只改bug不加功能;
稳定后确定上线,合并release到master,打tag确定版本,master不可用于开发;
出现紧急问题,从master 拉取 到
hotfix分支,bug改完合并回master并打新tag;
2)速查手册
3)git flow 命令
初始化: git flow init
开始新Feature: git flow feature
start MYFEATURE
Publish一个Feature(也就是push到远程):
git flow feature publish MYFEATURE
获取Publish的Feature: git flow
feature pull origin MYFEATURE
完成一个Feature: git flow
feature finish MYFEATURE
开始一个Release: git flow
release start RELEASE [BASE]
Publish一个Release: git flow
release publish RELEASE
发布Release: git flow release
finish RELEASE
别忘了git push --tags
开始一个Hotfix: git flow hotfix
start VERSION [BASENAME]
发布一个Hotfix: git flow hotfix
finish VERSION
5, TextView行间距字间距
<TextView android:id="@+id/tv_content" android:layout_width="match_parent" android:layout_height="wrap_content" android:letterSpacing="0.15" android:lineSpacingExtra="1px" android:lineSpacingMultiplier="1.2" android:paddingTop="5px" android:textColor="@color/color_444444" android:textSize="14px" />
lineSpacingExtra 行间距, 1px
lineSpacingMultiplier 行间距,1.2倍
letterSpacing 字间距 水平方向
实际应用 用哪个 写那个,上面都写就是个示例
更多时候是一个都不用
代码里 行间距
tv.setLineSpacing(0.0f, 1.1f);
两个参数 add,mult 分别对应 lineSpacingExtra 与
lineSpacingMultiplier.
代码里 字间距,min21的
tv.setLetterSpacing(0.15);
6,Thunderbird 正在复制消息到Drafts 文件夹
发现这个客户端不只是Linux有这个问题,在Mac上也有这个问题
而且好几年了。。。。
手动新建相应的文件夹,如 Drafts 对应的是 草稿箱;
然后 设置 相应的事件指向就ok....
这样的话,草稿只会保存在本地,不会保存在服务器了。
如果 本地的丢了,服务器是找不回来的。。。。
但是,Mac 自带的 邮件.app就可以同步 服务器的
草稿箱 垃圾箱到本地。。。。
而且我发现,邮件.app保存的图片,是作为
附件挂过去的,邮件.app自动同步到 服务器草稿箱里的 也是不显示的。。。。
看起来 是一般的邮箱 跟 Mac的邮件 不兼容的问题吧
2019年03月30日11:01:58
又发不过来,特么的。。。。看来是Blogspot的问题啊。。。。
----
senRsl
2019年01月30日13:00:48
senRsl
2019年01月30日13:00:48
没有评论 :
发表评论