Skip to content

Commit

Permalink
## 1.0.14
Browse files Browse the repository at this point in the history
 - 纯浏览图片功能增加了支持path方式。
 - 这方面浏览功能考虑以后增加共享过渡动画(这个动画其实另外一个demo已经做了很久了,但是前段时间发现了内存泄漏,即使翻墙查询相关解决方法也解决不了,希望有研究过的大牛帮忙解答下:https://github.com/googlesamples/android-unsplash/issues/12)。
 - 增加了内存泄漏检测,有相关内存泄漏的可以提供,会抓紧时间解决。
  • Loading branch information
aaatttcccc committed May 22, 2019
1 parent f7bd67e commit 353d876
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
#### Step 2. Add the dependency

dependencies {
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:albumCameraRecorderCommon:1.0.13' // 公共库,必须使用此库
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:multilibrary:1.0.13' // 核心lib,调用显示相册、录屏、录音等
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:progresslibrary:1.0.13' // 配套使用,主要用于获取数据后进行相关显示,相应的上传进度显示,如果你只需要获取照片录像录音等数据,自行写获取后呈现方式,可以不需要是用这个
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:albumCameraRecorderCommon:1.0.14' // 公共库,必须使用此库
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:multilibrary:1.0.14' // 核心lib,调用显示相册、录屏、录音等
implementation 'com.github.zhongjhATC.AlbumCameraRecorder:progresslibrary:1.0.14' // 配套使用,主要用于获取数据后进行相关显示,相应的上传进度显示,如果你只需要获取照片录像录音等数据,自行写获取后呈现方式,可以不需要是用这个
}

## 快照
Expand Down
5 changes: 5 additions & 0 deletions UPDATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 历史更新

## 1.0.14
- 纯浏览图片功能增加了支持path方式。
- 这方面浏览功能考虑以后增加共享过渡动画(这个动画其实另外一个demo已经做了很久了,但是前段时间发现了内存泄漏,即使翻墙查询相关解决方法也解决不了,希望有研究过的大牛帮忙解答下:https://github.com/googlesamples/android-unsplash/issues/12)。
- 增加了内存泄漏检测,有相关内存泄漏的可以提供,会抓紧时间解决。

## 1.0.13
- 完善app演示項目,抽出父类使之更加简洁,并且增加了style定制的demo。
- 录制界面的按钮样式增加可配置。
Expand Down
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ dependencies {
compile 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
compile 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0

// 检测内存泄漏 http://www.liaohuqiu.net/cn/posts/leak-canary-read-me/ https://github.com/square/leakcanary
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'

compile 'com.android.support:multidex:1.0.3'

}
11 changes: 11 additions & 0 deletions app/src/main/java/com/zhongjh/cameraapp/MyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import android.content.Context;
import android.support.multidex.MultiDex;

import com.squareup.leakcanary.LeakCanary;
import com.tencent.bugly.crashreport.CrashReport;

public class MyApplication extends Application {
Expand All @@ -18,7 +19,17 @@ public void onCreate() {
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);

// 腾讯提交bug
MultiDex.install(base);

// 检测内存泄漏
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
LeakCanary.install(this);
}

}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ task clean(type: Delete) {

ext {

versionCode = 1013
versionName = '1.0.13'
versionCode = 1014
versionName = '1.0.14'

androidCompileSdkVersion = 26
androidBuildToolsVersion = '26.0.2'
Expand Down

0 comments on commit 353d876

Please sign in to comment.