Zongle Wang
                                            Zongle Wang
                                        
                                    @Kr328 这个是不是也可以合一下了
[wm_bg.png.zip](https://github.com/huangyz0918/AndroidWM/files/3484336/wm_bg.png.zip)
``` fun getWatermarkBitmap(bgBitmap: Bitmap, text: String, context: Context): Bitmap { val watermarkText = WatermarkText(text) .setPositionX(0.5) .setPositionY(0.5) .setTextAlpha(255) .setRotation(-30.0) .setTextColor(Color.BLACK) return WatermarkBuilder.create(context, bgBitmap) .setTileMode(true) .loadWatermarkText(watermarkText) .watermark.outputImage } ```
Upgrade to the latest Gradle & kotlin plugin, it ought to work.
May we can enable Configuration Cache for this project. https://docs.gradle.org/7.5/release-notes.html#configuration-cache-improvements
New proguard rules added but not published yet, you can add these rules to your proguard-rules files. https://github.com/square/retrofit/blob/6cd6f7d8287f73909614cb7300fcde05f5719750/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro#L34-L41 See #3579 & #3598. ------ EDIT: Now you can just simplify use...
I think we can upgrade Dokka 1.5.0 with this change.
I've converted all gradle files to kts but root `build.gradle`, hopefullly to convert it after this.
May we should refer to [kotlinpoet](https://github.com/square/kotlinpoet) (with latest [gradle-maven-publish-plugin](https://github.com/vanniktech/gradle-maven-publish-plugin) and `Dokka`), which I think it's better than okio.