update version

This commit is contained in:
PeratX 2022-05-23 14:36:30 +08:00
parent 60a9834e9e
commit d0dc3ada22
6 changed files with 20 additions and 24 deletions

1
.github/FUNDING.yml vendored
View File

@ -1 +0,0 @@
custom: https://qr.alipay.com/a6x07022gffiehykicipv1a

View File

@ -1,8 +1,6 @@
# iTXTech Daedalus # iTXTech Daedalus
[![Donate](https://img.shields.io/badge/alipay-donate-yellow.svg)](https://qr.alipay.com/FKX04751EZDP0SQ0BOT137)
[![Build Status](https://travis-ci.org/iTXTech/Daedalus.svg?branch=master)](https://travis-ci.org/iTXTech/Daedalus) [![Build Status](https://travis-ci.org/iTXTech/Daedalus.svg?branch=master)](https://travis-ci.org/iTXTech/Daedalus)
[![Jenkins](https://img.shields.io/jenkins/s/http/dev.itxtech.org:10298/job/Daedalus.svg)](http://dev.itxtech.org:10298/job/Daedalus/)
__No root required Android DNS modifier and Hosts/DNSMasq resolver.__ __No root required Android DNS modifier and Hosts/DNSMasq resolver.__
@ -76,7 +74,7 @@ __Users must comply with local laws and regulations.__<br>
## License ## License
Copyright (C) 2017-2019 iTX Technologies <admin@itxtech.org> Copyright (C) 2017-2022 iTX Technologies <admin@itxtech.org>
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View File

@ -10,8 +10,8 @@ android {
applicationId "org.itxtech.daedalus" applicationId "org.itxtech.daedalus"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 31 targetSdkVersion 31
versionCode 20 versionCode 21
versionName "1.14.1" versionName "1.15.0"
buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\"" buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\"" buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""

View File

@ -40,7 +40,7 @@
<br> <br>
<div style="font-size: 12px; color: gray;">Users must comply with local laws and regulations.</div> <div style="font-size: 12px; color: gray;">Users must comply with local laws and regulations.</div>
<br> <br>
<div style="font-size: 12px; color: gray;">Copyright (C) 2017-2019 iTX Technologies <a <div style="font-size: 12px; color: gray;">Copyright (C) 2017-2022 iTX Technologies <a
href="mailto:admin@itxtech.org">admin@itxtech.org</a> href="mailto:admin@itxtech.org">admin@itxtech.org</a>
</div> </div>
<br> <br>

View File

@ -41,7 +41,7 @@
<br> <br>
<div style="font-size: 12px; color: gray;">使用者必须遵守当地法律法规。</div> <div style="font-size: 12px; color: gray;">使用者必须遵守当地法律法规。</div>
<br> <br>
<div style="font-size: 12px; color: gray;">Copyright (C) 2017-2019 iTX Technologies <a <div style="font-size: 12px; color: gray;">Copyright (C) 2017-2022 iTX Technologies <a
href="mailto:admin@itxtech.org">admin@itxtech.org</a> href="mailto:admin@itxtech.org">admin@itxtech.org</a>
</div> </div>
<br> <br>

View File

@ -12,7 +12,6 @@ import android.widget.Button;
import android.widget.TextView; import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBarDrawerToggle; import androidx.appcompat.app.ActionBarDrawerToggle;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat; import androidx.core.view.GravityCompat;
@ -145,21 +144,21 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
} }
activateCounter++; activateCounter++;
Daedalus.configurations.setActivateCounter(activateCounter); Daedalus.configurations.setActivateCounter(activateCounter);
if (activateCounter % 10 == 0) { // if (activateCounter % 10 == 0) {
new AlertDialog.Builder(this) // new AlertDialog.Builder(this)
.setTitle("觉得还不错?") // .setTitle("觉得还不错?")
.setMessage("您的支持是我动力来源!\n请考虑为我买杯咖啡醒醒脑甚至其他…… ;)") // .setMessage("您的支持是我动力来源!\n请考虑为我买杯咖啡醒醒脑甚至其他…… ;)")
.setPositiveButton("为我买杯咖啡", (dialog, which) -> { // .setPositiveButton("为我买杯咖啡", (dialog, which) -> {
Daedalus.donate(); // Daedalus.donate();
new AlertDialog.Builder(MainActivity.this) // new AlertDialog.Builder(MainActivity.this)
.setMessage("感谢您的支持!;)\n我会再接再厉") // .setMessage("感谢您的支持!;)\n我会再接再厉")
.setPositiveButton("确认", null) // .setPositiveButton("确认", null)
.show(); // .show();
}) // })
.setNeutralButton("不再显示", (dialog, which) -> Daedalus.configurations.setActivateCounter(-1)) // .setNeutralButton("不再显示", (dialog, which) -> Daedalus.configurations.setActivateCounter(-1))
.setNegativeButton("取消", null) // .setNegativeButton("取消", null)
.show(); // .show();
} // }
} }
public void onActivityResult(int request, int result, Intent data) { public void onActivityResult(int request, int result, Intent data) {