Xcode 模拟器录屏
1
2
3
| xcrun simctl list
xcrun simctl io booted screenshot app-screenshot.png
xcrun simctl io booted recordVideo app-preview.mp4
|
Xcode 反编译
下载class-dump
1
| class-dump -H skysonic.app -o ~/Desktop/result
|
maven 中国镜像
在 gradle.properties 中加大 connectionTimeout 和 socketTimeout 可以成功 gradle sync
1
| org.gradle.jvmargs=-Xmx1536m -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.http.socketTimeout=120000
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| buildscript {
repositories {
//google()
//jcenter()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/'}
maven { url 'https://maven.aliyun.com/repository/jcenter/'}
mavenLocal()
mavenCentral()
}
...
}
allprojects {
repositories {
//google()
//jcenter()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url 'https://maven.aliyun.com/repository/google/'}
maven { url 'https://maven.aliyun.com/repository/jcenter/'}
mavenLocal()
mavenCentral()
}
}
|
alias && PATH
vim ~/.zshrc
1
2
3
4
5
6
| export ZSH="/Users/hfy/.oh-my-zsh"
export PATH="$PATH:/Volumes/E/bin/flutter/bin:/Users/hfy/Library/Android/sdk/platform-tools"
export PUB_HOSTED_URL="https://mirrors.tuna.tsinghua.edu.cn/dart-pub"
export FLUTTER_STORAGE_BASE_URL="https://mirrors.tuna.tsinghua.edu.cn/flutter"
alias hb='open -a /Applications/HbuilderX.app'
|