Skip to content

Commit 565d890

Browse files
committed
七牛云上传
1 parent efdc6bf commit 565d890

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2376
-48
lines changed

app/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,15 @@ dependencies {
118118
//JSON处理
119119
api 'com.google.code.gson:gson:2.8.5'
120120

121+
//https://github.com/zhihu/Matisse 本地文件选择器
122+
implementation 'com.zhihu.android:matisse:0.5.2-beta3'
123+
//图片加载器 matisse 需要2.5.2 ,不要变动版本
124+
implementation 'com.squareup.picasso:picasso:2.5.2'
125+
126+
//七牛图片上传SDK
127+
implementation 'com.qiniu:qiniu-android-sdk:7.3.13'
128+
129+
121130

122131
// 友盟统计与第三方
123132
implementation files('libs/umeng-share-core-6.9.3.jar')

app/src/main/AndroidManifest.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@
9797
android:name=".ui.activity.WebActivity"
9898
android:launchMode="singleTop" />
9999

100+
<!-- 富文本编辑器界面 -->
101+
<activity
102+
android:name=".ui.activity.RicheditorActivity"
103+
android:launchMode="singleTop" />
104+
100105
<!-- 在线更新 -->
101106
<activity
102107
android:name=".ui.activity.UpdateActivity"
@@ -135,6 +140,17 @@
135140
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
136141
<!--QQ社会化组件-->
137142

143+
<!--调用相机获取拍摄照片的内容提供者,其中authorities值需要根据包名修改,如和其它APP相同会导致冲突而无法安装-->
144+
<provider
145+
android:name="android.support.v4.content.FileProvider"
146+
android:authorities="${applicationId}.fileprovider"
147+
android:exported="false"
148+
android:grantUriPermissions="true">
149+
<meta-data
150+
android:name="android.support.FILE_PROVIDER_PATHS"
151+
android:resource="@xml/file_paths_public" />
152+
</provider>
153+
138154

139155
</application>
140156

app/src/main/assets/editor.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="viewport" content="user-scalable=no">
5+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6+
<link rel="stylesheet" type="text/css" href="normalize.css">
7+
<link rel="stylesheet" type="text/css" href="style.css">
8+
</head>
9+
<body>
10+
<div id="editor" contenteditable="true"></div>
11+
<script type="text/javascript" src="rich_editor.js"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)