Skip to content

Commit 47ee605

Browse files
author
wanjian
committed
no message
0 parents  commit 47ee605

Some content is hidden

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

41 files changed

+1202
-0
lines changed

.gitignore

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/libraries
5+
/.idea/modules.xml
6+
/.idea/workspace.xml
7+
.DS_Store
8+
/build
9+
/captures
10+
.externalNativeBuild
11+
### JetBrains template
12+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
13+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
14+
15+
# User-specific stuff
16+
.idea/**/workspace.xml
17+
.idea/**/tasks.xml
18+
.idea/**/usage.statistics.xml
19+
.idea/**/dictionaries
20+
.idea/**/shelf
21+
22+
# Sensitive or high-churn files
23+
.idea/**/dataSources/
24+
.idea/**/dataSources.ids
25+
.idea/**/dataSources.local.xml
26+
.idea/**/sqlDataSources.xml
27+
.idea/**/dynamic.xml
28+
.idea/**/uiDesigner.xml
29+
.idea/**/dbnavigator.xml
30+
31+
# Gradle
32+
.idea/**/gradle.xml
33+
.idea/**/libraries
34+
35+
# Gradle and Maven with auto-import
36+
# When using Gradle or Maven with auto-import, you should exclude module files,
37+
# since they will be recreated, and may cause churn. Uncomment if using
38+
# auto-import.
39+
# .idea/modules.xml
40+
# .idea/*.iml
41+
# .idea/modules
42+
43+
# CMake
44+
cmake-build-*/
45+
46+
# Mongo Explorer plugin
47+
.idea/**/mongoSettings.xml
48+
49+
# File-based project format
50+
*.iws
51+
52+
# IntelliJ
53+
out/
54+
55+
# mpeltonen/sbt-idea plugin
56+
.idea_modules/
57+
58+
# JIRA plugin
59+
atlassian-ide-plugin.xml
60+
61+
# Cursive Clojure plugin
62+
.idea/replstate.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
70+
# Editor-based Rest Client
71+
.idea/httpRequests
72+
### Android template
73+
# Built application files
74+
*.apk
75+
*.ap_
76+
77+
# Files for the ART/Dalvik VM
78+
*.dex
79+
80+
# Java class files
81+
*.class
82+
83+
# Generated files
84+
bin/
85+
gen/
86+
out/
87+
88+
# Gradle files
89+
.gradle/
90+
build/
91+
92+
# Local configuration file (sdk path, etc)
93+
local.properties
94+
95+
# Proguard folder generated by Eclipse
96+
proguard/
97+
98+
# Log Files
99+
*.log
100+
101+
# Android Studio Navigation editor temp files
102+
.navigation/
103+
104+
# Android Studio captures folder
105+
captures/
106+
107+
# IntelliJ
108+
*.iml
109+
.idea/workspace.xml
110+
.idea/tasks.xml
111+
.idea/gradle.xml
112+
.idea/assetWizardSettings.xml
113+
.idea/dictionaries
114+
.idea/libraries
115+
.idea/caches
116+
117+
# Keystore files
118+
# Uncomment the following line if you do not want to check your keystore files in.
119+
#*.jks
120+
121+
# External native build folder generated in Android Studio 2.2 and later
122+
.externalNativeBuild
123+
124+
# Google Services (e.g. APIs or Firebase)
125+
google-services.json
126+
127+
# Freeline
128+
freeline.py
129+
freeline/
130+
freeline_project_description.json
131+
132+
# fastlane
133+
fastlane/report.xml
134+
fastlane/Preview.html
135+
fastlane/screenshots
136+
fastlane/test_output
137+
fastlane/readme.md
138+
### Java template
139+
# Compiled class file
140+
*.class
141+
142+
# Log file
143+
*.log
144+
145+
# BlueJ files
146+
*.ctxt
147+
148+
# Mobile Tools for Java (J2ME)
149+
.mtj.tmp/
150+
151+
# Package Files #
152+
*.jar
153+
*.war
154+
*.nar
155+
*.ear
156+
*.zip
157+
*.tar.gz
158+
*.rar
159+
160+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
161+
hs_err_pid*
162+
### macOS template
163+
# General
164+
.DS_Store
165+
.AppleDouble
166+
.LSOverride
167+
168+
# Icon must end with two \r
169+
Icon
170+
171+
# Thumbnails
172+
._*
173+
174+
# Files that might appear in the root of a volume
175+
.DocumentRevisions-V100
176+
.fseventsd
177+
.Spotlight-V100
178+
.TemporaryItems
179+
.Trashes
180+
.VolumeIcon.icns
181+
.com.apple.timemachine.donotpresent
182+
183+
# Directories potentially created on remote AFP share
184+
.AppleDB
185+
.AppleDesktop
186+
Network Trash Folder
187+
Temporary Items
188+
.apdisk
189+
190+
tinypng/repo

.idea/codeStyles/Project.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: "com.wanjian.tinypng"
3+
android {
4+
compileSdkVersion 28
5+
defaultConfig {
6+
applicationId "com.wanjian.tinypngplugin.demo"
7+
minSdkVersion 19
8+
targetSdkVersion 28
9+
versionCode 1
10+
versionName "1.0"
11+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
12+
}
13+
buildTypes {
14+
release {
15+
minifyEnabled false
16+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
17+
}
18+
}
19+
flavorDimensions "api"
20+
21+
productFlavors {
22+
demo {
23+
// Assigns this product flavor to the "mode" flavor dimension.
24+
dimension "api"
25+
}
26+
27+
full {
28+
dimension "api"
29+
}
30+
31+
// Configurations in the "api" product flavors override those in "mode"
32+
// flavors and the defaultConfig {} block. Gradle determines the priority
33+
// between flavor dimensions based on the order in which they appear next
34+
// to the flavorDimensions property above--the first dimension has a higher
35+
// priority than the second, and so on.
36+
// minApi24 {
37+
// dimension "api"
38+
// minSdkVersion '24'
39+
// // To ensure the target device receives the version of the app with
40+
// // the highest compatible API level, assign version codes in increasing
41+
// // value with API level. To learn more about assigning version codes to
42+
// // support app updates and uploading to Google Play, read Multiple APK Support
43+
// versionCode 30000 + android.defaultConfig.versionCode
44+
// versionNameSuffix "-minApi24"
45+
// }
46+
47+
48+
}
49+
sourceSets {
50+
demo {
51+
res.srcDirs = ['src/main/res','src/pad/res']
52+
}
53+
}
54+
}
55+
56+
dependencies {
57+
implementation fileTree(dir: 'libs', include: ['*.jar'])
58+
implementation 'com.android.support:appcompat-v7:28.0.0'
59+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
60+
testImplementation 'junit:junit:4.12'
61+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
62+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
63+
}
64+
65+
tinyPng {
66+
enable true
67+
keys=["SWxfXRhZ6H1wnXnd3j5HmbK8wCpvdH0X",]
68+
}

app/exclude_pictures.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
app/src/main/res/drawable/ic_launcher_background.xml
2+
app/src/main/res/drawable-24/ic_launcher_background.xml

app/processed_pictures

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do not modify this file !
2+
b9623cb9dfe13ebca47937bc84b464e7
3+
96d1bfcf73d28cfcde2999f8ad065ad2
4+
8472c4be063b4c14228400d020b2d7aa
5+
fbd771120a528ca0609a3c922c22a0e3
6+
3c25790589d54fdb40247a2639f5fd22
7+
4e747c621d52b05570c94b05f189e1ac
8+
bf00ec9b057d5a93916ca136c566aa0c
9+
381288b16d5023f2a48cf8aea91a1d0d
10+
03c4c5fd669b3e09474e0658b096ff05
11+
46993dbceae971a0742f6840de8ca136
12+
96d1bfcf73d28cfcde2999f8ad065ad2

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

0 commit comments

Comments
 (0)