优化天气,增加悬浮窗,增加快捷拨号,增加设置默认桌面

This commit is contained in:
2026-03-28 00:56:54 +08:00
parent 1977fd1cb2
commit b0ea6eff0a
74 changed files with 4055 additions and 242 deletions

View File

@@ -181,6 +181,8 @@ ext {
dependencies {
// implementation fileTree(dir: 'libs', include: ['*.jar'])
compileOnly files('libs/framework.jar')
//Android 4.4+
implementation files('libs/QWeather_Public_Android_V5.1.2.jar')
implementation 'net.i2p.crypto:eddsa:0.3.0'
@@ -333,3 +335,29 @@ dependencies {
// implementation 'me.jessyan:autosize:1.2.1'
}
preBuild {
doLast {
def imlFile = file(project.name + ".iml")
// def imlFile = file("..\\.idea\\modules\\" + project.name + "\\" + rootProject.name + "." + project.name + ".iml")
println 'Change ' + project.name + '.iml order'
try {
def parsedXml = (new XmlParser()).parse(imlFile)
def jdkNode = parsedXml.component[1].orderEntry.find { it.'@type' == 'jdk' }
parsedXml.component[1].remove(jdkNode)
def sdkString = "Android API " + android.compileSdkVersion.substring("android-".length()) + " Platform"
println 'what' + sdkString
new Node(parsedXml.component[1], 'orderEntry', ['type': 'jdk', 'jdkName': sdkString, 'jdkType': 'Android SDK'])
groovy.xml.XmlUtil.serialize(parsedXml, new FileOutputStream(imlFile))
} catch (FileNotFoundException e) {
// nop, iml not found
println "no iml found"
}
}
//https://www.pianshen.com/article/93481144911/
//https://blog.csdn.net/dhl_1986/article/details/102856026
//https://blog.csdn.net/zhonghe1114/article/details/80923730
//https://blog.csdn.net/u014175785/article/details/116235760
//使用系统编译后的framework.jar
}