Skip to content

Commit 664bc94

Browse files
authored
Merge pull request #33 from rosuH/feat_UI_Experimental
v2.0.0
2 parents 3c5a05f + e221f5e commit 664bc94

129 files changed

Lines changed: 3547 additions & 1103 deletions

File tree

Some content is hidden

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

.idea/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

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

.idea/jarRepositories.xml

Lines changed: 30 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: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Securely, easily add a watermark to your sensitive photos.</br>To prevent them f
2424
<p align="left">
2525
<a href="https://play.google.com/store/apps/details?id=me.rosuh.easywatermark"><img src="/static/google-play-badge.png" width="auto" height="64px"/></a>
2626
<a href="https://www.coolapk.com/apk/272743"><img src="/static/logo_coolapk.png" width="auto" height="64px"/></a>
27+
<a href="https://f-droid.org/packages/me.rosuh.easywatermark/"><img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" width="auto" height="64px"/></a>
2728
</p>
2829

2930
## Characteristics
@@ -78,12 +79,12 @@ You can turn down the transparency, just don't block the key information.
7879

7980
> This app was designed by [@tovi](https://www.figma.com/@tovi), so all rights to the UI and related design resources belong to him and may not be used without permission from any person or organization.
8081
81-
## Open Source License.
82-
Third party libraries used.
82+
## Credit
8383
- [daniel-stonuk/material-about-library](https://github.com/daniel-stoneuk/material-about-library)
8484
- [skydoves/ColorPickerView](https://github.com/skydoves/ColorPickerView)
8585
- [material-components/material-components-android](https://github.com/material-components/material-components-android)
8686
- [Compressor](https://github.com/zetbaitsu/Compressor/)
87+
- Sample Photo by Deepak Nautiyal on [Unsplash](https://unsplash.com/s/photos/animals?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
8788

8889
## Feedback and contribution
8990
We welcome your comments and suggestions in the issues section, or you can contribute your code by submitting a PR directly to us.

README_zh-CN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
<p align="left">
2222
<a href="https://play.google.com/store/apps/details?id=me.rosuh.easywatermark"><img src="/static/google-play-badge_cn.png" width="auto" height="64px"/></a>
2323
<a href="https://www.coolapk.com/apk/272743"><img src="/static/logo_coolapk.png" width="auto" height="64px"/></a>
24+
<a href="https://f-droid.org/packages/me.rosuh.easywatermark/"><img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" width="auto" height="64px"/></a>
2425
</p>
2526

27+
2628
## 特性
2729

2830
> 当时我就念了一首诗 👓
@@ -47,11 +49,9 @@
4749

4850
开发者所主导的下载渠道:
4951
- [Github Release](https://github.com/rosuH/EasyWatermark/releases):永远保持最新
50-
- [奶牛快传](https://ewm.rosuh.me): ⚡不限速下载,永远保持最新
51-
- 如果你有意尝试奶牛快传,可以使用我的[邀请链接](https://cowtransfer.com/?lx_guid=d14511ff-0fb9-4add-9cf1-e22b63415f33) ;)
5252
- [Google Play](https://play.google.com/store/apps/details?id=me.rosuh.easywatermark)
5353
- ⚠️注意:此版本收费,但是代码完全一致,所以如果您愿意请作者喝一杯茶(或者您比较任性),那么请去此下载,否则请选择其他渠道:)
54-
- F-Droid(构建中)
54+
- [F-Droid](https://f-droid.org/packages/me.rosuh.easywatermark/)
5555
- [酷安](https://www.coolapk.com/apk/272743)
5656

5757
其他渠道均非开发者所主导,请仔细甄别后下载使用。
@@ -82,6 +82,7 @@
8282
- [skydoves/ColorPickerView](https://github.com/skydoves/ColorPickerView)
8383
- [material-components/material-components-android](https://github.com/material-components/material-components-android)
8484
- [Compressor](https://github.com/zetbaitsu/Compressor/)
85+
- 示例图片来自 Jeremy Bishop on [Unsplash](https://unsplash.com/s/photos/animals?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)
8586

8687
## 反馈与贡献
8788
我们非常欢迎您在 issues 区发表您任何意见与建议,或者直接提交 PR 以贡献您的代码。

app/build.gradle.kts

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
77
plugins {
88
id("com.android.application")
99
id("kotlin-android")
10-
id("kotlin-android-extensions")
10+
id("kotlin-parcelize")
11+
id("name.remal.check-dependency-updates") version "1.2.2"
1112
}
1213

1314
android {
@@ -18,9 +19,8 @@ android {
1819
applicationId = "me.rosuh.easywatermark"
1920
minSdkVersion(Apps.minSdk)
2021
targetSdkVersion(Apps.targetSdk)
21-
versionCode = 10102
22-
versionName = "1.1.2"
23-
22+
versionCode = 20000
23+
versionName = "2.0.0"
2424
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2525
}
2626

@@ -38,7 +38,7 @@ android {
3838
isShrinkResources = true
3939
proguardFiles(
4040
getDefaultProguardFile("proguard-android-optimize.txt"),
41-
"proguard-rules.pro"
41+
"coroutines.pro","proguard-rules.pro"
4242
)
4343
}
4444
}
@@ -67,11 +67,19 @@ android {
6767
output.outputFileName = "ewm-v${variant.versionName}.apk"
6868
}
6969
}
70+
71+
packagingOptions {
72+
exclude("DebugProbesKt.bin")
73+
}
74+
75+
android.buildFeatures.viewBinding = true
76+
7077
}
7178

7279
tasks.withType<KotlinCompile> {
7380
kotlinOptions {
7481
jvmTarget = "1.8"
82+
useIR = true
7583
}
7684
}
7785

@@ -83,6 +91,10 @@ dependencies {
8391
implementation(Libs.materialAboutLibrary)
8492
implementation(Libs.material)
8593
implementation(Libs.fragmentKtx)
94+
implementation(Libs.fragment)
95+
implementation(Libs.activityKtx)
96+
implementation(Libs.coroutineAndroid)
97+
implementation(Libs.coroutineCore)
8698
implementation(Libs.lifecycleLiveData)
8799
implementation(Libs.lifecycleViewModel)
88100
implementation(Libs.colorPickerView)
@@ -91,5 +103,16 @@ dependencies {
91103
implementation(Libs.constraintLayout)
92104
implementation(Libs.coreKtx)
93105
implementation(Libs.exif)
106+
implementation(Libs.palette)
94107
testImplementation(TestLibs.junit)
95-
}
108+
testImplementation(TestLibs.androidXTest)
109+
testImplementation(TestLibs.mock)
110+
androidTestImplementation(TestLibs.mockAndroid)
111+
androidTestImplementation(TestLibs.robolectric)
112+
androidTestImplementation(TestLibs.testRules)
113+
androidTestImplementation(TestLibs.testRunner)
114+
androidTestImplementation(TestLibs.hamcrest)
115+
androidTestImplementation(TestLibs.espresso)
116+
androidTestImplementation(TestLibs.uiautomator)
117+
androidTestImplementation(TestLibs.junitExt)
118+
}

app/coroutines.pro

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Allow R8 to optimize away the FastServiceLoader.
2+
# Together with ServiceLoader optimization in R8
3+
# this results in direct instantiation when loading Dispatchers.Main
4+
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
5+
boolean FAST_SERVICE_LOADER_ENABLED return false;
6+
}
7+
8+
-assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoaderKt {
9+
boolean ANDROID_DETECTED return true;
10+
}
11+
12+
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
13+
14+
# Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
15+
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
16+
boolean SUPPORT_MISSING return false;
17+
}
18+
19+
# Statically turn off all debugging facilities and assertions
20+
-assumenosideeffects class kotlinx.coroutines.DebugKt {
21+
boolean getASSERTIONS_ENABLED() return false;
22+
boolean getDEBUG() return false;
23+
boolean getRECOVER_STACK_TRACES() return false;
24+
}

app/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name">Easy WaterMark-pruebas</string>
4+
</resources>

0 commit comments

Comments
 (0)