android link call

This commit is contained in:
DASHU
2025-11-25 21:57:53 +08:00
parent 228a30e74c
commit e7f79c0f06
17 changed files with 308 additions and 23 deletions

View File

@@ -29,7 +29,7 @@ if (flutterVersionName == null) {
android {
namespace = "com.github.haorendashu.nowser"
compileSdk = flutter.compileSdkVersion
compileSdk = 36
ndkVersion = "28.0.13004108"
// compileOptions {
@@ -57,7 +57,7 @@ android {
// minSdk = flutter.minSdkVersion
// targetSdk = flutter.targetSdkVersion
minSdkVersion flutter.minSdkVersion
targetSdk = 33
targetSdk = 36
versionCode = flutterVersionCode.toInteger()
versionName = flutterVersionName
}
@@ -83,4 +83,4 @@ android {
flutter {
source = "../.."
}
}

View File

@@ -22,6 +22,8 @@
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<meta-data android:name="flutter_deeplinking_enabled" android:value="false" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
@@ -32,12 +34,6 @@
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT"/>
<!-- <category android:name="android.intent.category.BROWSABLE" /> -->
<data android:scheme="nostrsigner" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<!-- <category android:name="android.intent.category.DEFAULT"/> -->
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="nostrsigner" />
</intent-filter>

View File

@@ -1,3 +1,15 @@
buildscript {
ext.kotlin_version = '2.1.0'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
@@ -13,8 +25,8 @@ subprojects {
if (namespace == null) {
namespace project.group
}
compileSdkVersion 34
buildToolsVersion "34.0.0"
compileSdkVersion 36
buildToolsVersion "36.0.0"
}
}
}
@@ -28,4 +40,4 @@ subprojects {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
}

View File

@@ -5,3 +5,6 @@ android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
kotlin.jvm.target.validation.mode = IGNORE
org.gradle.parallel=true
org.gradle.configureondemand=true
android.enableR8=true

View File

@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists

View File

@@ -18,7 +18,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.7.0" apply false
id "com.android.application" version "8.9.1" apply false
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
}