From ed658c83e620e7a77686eb589f00a31ca881aefd Mon Sep 17 00:00:00 2001 From: Fankesyooni Date: Thu, 10 Feb 2022 18:53:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E5=88=B0=20A-GPL3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++-- .../tsbattery/application/TSApplication.kt | 26 +++++++++-------- .../com/fankes/tsbattery/hook/HookMain.kt | 28 ++++++++++--------- .../com/fankes/tsbattery/hook/HookMedium.kt | 26 +++++++++-------- .../com/fankes/tsbattery/ui/MainActivity.kt | 28 ++++++++++--------- .../fankes/tsbattery/utils/DialogBuilder.kt | 28 ++++++++++--------- .../com/fankes/tsbattery/utils/FileUtils.java | 26 +++++++++-------- .../java/com/fankes/tsbattery/utils/Utils.kt | 28 ++++++++++--------- .../com/fankes/tsbattery/utils/XPrefUtils.kt | 26 +++++++++-------- .../drawable/drawabletoolbox/Compatible.kt | 26 +++++++++-------- .../drawable/drawabletoolbox/Constants.kt | 27 +++++++++--------- .../drawabletoolbox/DrawableBuilder.kt | 26 +++++++++-------- .../drawabletoolbox/DrawableProperties.kt | 26 +++++++++-------- .../drawabletoolbox/DrawableWrapperBuilder.kt | 26 +++++++++-------- .../drawable/drawabletoolbox/FlipDrawable.kt | 26 +++++++++-------- .../drawabletoolbox/FlipDrawableBuilder.kt | 26 +++++++++-------- .../drawabletoolbox/LayerDrawableBuilder.kt | 26 +++++++++-------- .../PathShapeDrawableBuilder.kt | 26 +++++++++-------- .../drawabletoolbox/RippleDrawableBuilder.kt | 26 +++++++++-------- .../drawabletoolbox/RotateDrawableBuilder.kt | 26 +++++++++-------- .../drawabletoolbox/ScaleDrawableBuilder.kt | 26 +++++++++-------- .../StateListDrawableBuilder.kt | 26 +++++++++-------- .../fankes/tsbattery/view/MaterialSwitch.kt | 27 +++++++++--------- 23 files changed, 315 insertions(+), 272 deletions(-) diff --git a/README.md b/README.md index 00a8b37..c3482a2 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,10 @@ TSBattery 是一个旨在使 QQ、TIM、微信 变得更省电的开源 Xposed

⚠️ ️适配说明:此模块支持 LSPosed(作用域 QQ、TIM、微信 如果不起作用勾选系统框架)、~~EdXposed(随时停止支持)~~、太极无极(阴和阳)、Pine(梦境模块) -# 禁止任何商业用途 +# 请勿用于非法用途 -本模块完全开源免费,如果好用你可以打赏支持开发,严禁未经许可进行二改贩卖,违者必惩必究。 +- 本模块完全开源免费,如果好用你可以打赏支持开发,但是请不要提交用于非法用途的功能。 +- 本模块发布地址仅有 Xposed Repo 和 [Release](https://github.com/fankes/TSBattery/releases),从其他非正规渠道下载到的版本或对您造成任何影响均与我们无关。 # 开始贡献 diff --git a/app/src/main/java/com/fankes/tsbattery/application/TSApplication.kt b/app/src/main/java/com/fankes/tsbattery/application/TSApplication.kt index 9e71f9e..3160efc 100644 --- a/app/src/main/java/com/fankes/tsbattery/application/TSApplication.kt +++ b/app/src/main/java/com/fankes/tsbattery/application/TSApplication.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2021/11/9. */ diff --git a/app/src/main/java/com/fankes/tsbattery/hook/HookMain.kt b/app/src/main/java/com/fankes/tsbattery/hook/HookMain.kt index 435fe73..6fb2aae 100644 --- a/app/src/main/java/com/fankes/tsbattery/hook/HookMain.kt +++ b/app/src/main/java/com/fankes/tsbattery/hook/HookMain.kt @@ -1,20 +1,22 @@ -/** - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) +/* + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2021/9/4. */ diff --git a/app/src/main/java/com/fankes/tsbattery/hook/HookMedium.kt b/app/src/main/java/com/fankes/tsbattery/hook/HookMedium.kt index 39350ca..ea62693 100644 --- a/app/src/main/java/com/fankes/tsbattery/hook/HookMedium.kt +++ b/app/src/main/java/com/fankes/tsbattery/hook/HookMedium.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2021/11/9. */ diff --git a/app/src/main/java/com/fankes/tsbattery/ui/MainActivity.kt b/app/src/main/java/com/fankes/tsbattery/ui/MainActivity.kt index ae059fc..7e85290 100644 --- a/app/src/main/java/com/fankes/tsbattery/ui/MainActivity.kt +++ b/app/src/main/java/com/fankes/tsbattery/ui/MainActivity.kt @@ -1,20 +1,22 @@ -/** - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) +/* + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2021/9/4. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/DialogBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/DialogBuilder.kt index 80577b5..9fbf47a 100644 --- a/app/src/main/java/com/fankes/tsbattery/utils/DialogBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/DialogBuilder.kt @@ -1,20 +1,22 @@ -/** - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) +/* + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/7. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/FileUtils.java b/app/src/main/java/com/fankes/tsbattery/utils/FileUtils.java index c8c5e62..cf4a72d 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/FileUtils.java +++ b/app/src/main/java/com/fankes/tsbattery/utils/FileUtils.java @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by zpp0196 on 2019/2/9. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/Utils.kt b/app/src/main/java/com/fankes/tsbattery/utils/Utils.kt index 539cf81..3c452d0 100644 --- a/app/src/main/java/com/fankes/tsbattery/utils/Utils.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/Utils.kt @@ -1,20 +1,22 @@ -/** - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) +/* + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/7. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/XPrefUtils.kt b/app/src/main/java/com/fankes/tsbattery/utils/XPrefUtils.kt index d2e1359..a3195a2 100644 --- a/app/src/main/java/com/fankes/tsbattery/utils/XPrefUtils.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/XPrefUtils.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by zpp0196 on 2018/4/11. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Compatible.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Compatible.kt index 5066977..4b84558 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Compatible.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Compatible.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Constants.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Constants.kt index 77f8a2e..fcd1bcc 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Constants.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/Constants.kt @@ -1,24 +1,25 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ - package com.fankes.tsbattery.utils.drawable.drawabletoolbox class Constants { diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableBuilder.kt index 1977751..f4876dc 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableProperties.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableProperties.kt index 31195ef..0490fd4 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableProperties.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableProperties.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableWrapperBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableWrapperBuilder.kt index 6802514..08d0412 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableWrapperBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/DrawableWrapperBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawable.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawable.kt index 83a335f..fcd5a9b 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawable.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawable.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawableBuilder.kt index 85ae622..9ba9e27 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/FlipDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/LayerDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/LayerDrawableBuilder.kt index def82fe..95e8428 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/LayerDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/LayerDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/PathShapeDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/PathShapeDrawableBuilder.kt index 5d0d070..ce911d1 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/PathShapeDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/PathShapeDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RippleDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RippleDrawableBuilder.kt index 2deda78..2efc296 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RippleDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RippleDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RotateDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RotateDrawableBuilder.kt index 26d827c..9f7623d 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RotateDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/RotateDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/ScaleDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/ScaleDrawableBuilder.kt index 883f0d0..961b0a5 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/ScaleDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/ScaleDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/StateListDrawableBuilder.kt b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/StateListDrawableBuilder.kt index 9357d37..e80ac5b 100755 --- a/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/StateListDrawableBuilder.kt +++ b/app/src/main/java/com/fankes/tsbattery/utils/drawable/drawabletoolbox/StateListDrawableBuilder.kt @@ -1,20 +1,22 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ diff --git a/app/src/main/java/com/fankes/tsbattery/view/MaterialSwitch.kt b/app/src/main/java/com/fankes/tsbattery/view/MaterialSwitch.kt index 16dfdd1..116c6a4 100644 --- a/app/src/main/java/com/fankes/tsbattery/view/MaterialSwitch.kt +++ b/app/src/main/java/com/fankes/tsbattery/view/MaterialSwitch.kt @@ -1,24 +1,25 @@ /* - * Copyright (C) 2022. Fankes Studio(qzmmcn@163.com) + * TSBattery - A new way to save your battery avoid cancer apps hacker it. + * Copyright (C) 2019-2022 qzmmcn@163.com + * https://github.com/fankes/TSBattery * - * This file is part of TSBattery. + * This software is non-free but opensource software: you can redistribute it + * and/or modify it under the terms of the GNU Affero General Public License + * as published by the Free Software Foundation; either + * version 3 of the License, or any later version and our eula as published + * by ferredoxin. * - * TSBattery is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * TSBattery is distributed in the hope that it will be useful, + * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . + * You should have received a copy of the GNU Affero General Public License + * and eula along with this software. If not, see + * * * This file is Created by fankes on 2022/1/8. */ - @file:Suppress("SameParameterValue") package com.fankes.tsbattery.view