Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

PorscheYu jiahuanyu

🎯
Focusing
View GitHub Profile
@jiahuanyu
jiahuanyu / build.gradle
Last active Jan 8, 2019
[生成拷贝aar] task #gradle
View build.gradle
task aar(type: Copy) {
from 'build/outputs/aar'
into '../component_aars'
include("xr_doctor-release.aar")
rename("xr_doctor-release.aar", "xr_doctor.aar")
}
aar.dependsOn("assembleRelease")
@jiahuanyu
jiahuanyu / example
Created Sep 28, 2018
[IDEA Log配色]
View example
Assert: #AA66CC
Debug: #33B5E5
Error: #FF4444
Info: #99CC00
Verbose: #FFFFFF
Warning: #FFBB33
@jiahuanyu
jiahuanyu / url
Created Sep 27, 2018
[Android O 适配指南] API26适配 #android
View url
https://mp.weixin.qq.com/s/lKKQhJz_dKFW5CIKt-BUdw
@jiahuanyu
jiahuanyu / example.md
Last active Nov 12, 2018
[Git常用命令] #git
View example.md

修改远程仓库地址

git remote set-url ${远程仓库名} ${远程仓库地址}

拉取远程仓库分支到本地分支

git checkout -b ${本地分支名} ${远程仓库名}/${远程仓库分支}
@jiahuanyu
jiahuanyu / build_android.sh
Created Sep 13, 2018
[MAC下编译Android FFMpeg] #android #ffmpeg
View build_android.sh
// vim: syntax=shell
#!/bin/bash
# 编译临时位置,先自己创建好
TEMPDIR=/Users/abbott/WorkSpace/jiahuan/ffmpeg/temp
# NDK工具目录
NDK=/Users/abbott/WorkSpace/Tools/Android/sdk/ndk-bundle
# 设置编译平台
@jiahuanyu
jiahuanyu / AndroidManifest.xml
Last active Nov 19, 2018
[Android7.0以上摄像头获取图片] Android7.0以上获取摄像头拍下的照片需要特殊处理 #android
View AndroidManifest.xml
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${packageName}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />