Skip to content

Commit a207ce2

Browse files
committed
Initial commit
Signed-off-by: Fung Gwo <fython@163.com>
0 parents  commit a207ce2

38 files changed

Lines changed: 2637 additions & 0 deletions

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
/build
7+
/captures
8+
.externalNativeBuild
9+
.vscode
10+
.settings
11+
.project
12+
.classpath

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apply plugin: 'com.android.application'
2+
3+
apply from: rootProject.file('libraries.gradle')
4+
5+
android {
6+
compileSdkVersion rootProject.ext.compileSdkVersion
7+
8+
defaultConfig {
9+
applicationId "app.gwo.wechat.docuiproxy"
10+
minSdkVersion rootProject.ext.minSdkVersion
11+
targetSdkVersion rootProject.ext.targetSdkVersion
12+
versionCode rootProject.ext.versionCode
13+
versionName rootProject.ext.versionName
14+
}
15+
16+
buildTypes {
17+
release {
18+
minifyEnabled false
19+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
20+
}
21+
}
22+
23+
compileOptions {
24+
sourceCompatibility JavaVersion.VERSION_1_8
25+
targetCompatibility JavaVersion.VERSION_1_8
26+
}
27+
}
28+
29+
dependencies {
30+
final androidxVersion = '1.0.0'
31+
implementation "androidx.annotation:annotation:$androidxVersion"
32+
implementation "androidx.recyclerview:recyclerview:$androidxVersion"
33+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
xmlns:tools="http://schemas.android.com/tools"
3+
package="app.gwo.wechat.docuiproxy">
4+
5+
<!-- We do not use this permission actually. But it is required for Android M+ security limitations. -->
6+
<uses-permission android:name="android.permission.CAMERA"/>
7+
8+
<!-- Use to save choose result in the ProxyCameraActivity -->
9+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
10+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@mipmap/ic_launcher"
15+
android:label="@string/app_name"
16+
android:roundIcon="@mipmap/ic_launcher_round"
17+
android:supportsRtl="true"
18+
android:fullBackupContent="false"
19+
android:theme="@style/Base.Theme.App"
20+
tools:ignore="GoogleAppIndexingWarning">
21+
22+
<activity
23+
android:name=".ProxyCameraActivity"
24+
android:theme="@style/Theme.Transparent"
25+
android:exported="true">
26+
<intent-filter>
27+
<action android:name="android.media.action.IMAGE_CAPTURE"/>
28+
29+
<category android:name="android.intent.category.DEFAULT"/>
30+
</intent-filter>
31+
</activity>
32+
33+
<provider
34+
android:authorities="${applicationId}.FILE_PROVIDER"
35+
android:name="androidx.core.content.FileProvider"
36+
android:exported="false"
37+
android:grantUriPermissions="true">
38+
<meta-data
39+
android:name="android.support.FILE_PROVIDER_PATHS"
40+
android:resource="@xml/file_provider_paths"/>
41+
</provider>
42+
43+
</application>
44+
45+
</manifest>

0 commit comments

Comments
 (0)