Skip to content

Commit

Permalink
fix: fix android build for flutter324
Browse files Browse the repository at this point in the history
  • Loading branch information
andycall committed Oct 30, 2024
1 parent df79241 commit 8ad7c66
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions webf/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,40 @@ version '1.0'

buildscript {
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/google/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter/'
}
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath("com.android.tools.build:gradle:7.3.0")
}
}

rootProject.allprojects {

allprojects {
repositories {
maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/google/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter/'
}
google()
mavenCentral()
}
}

apply plugin: 'com.android.library'


android {
compileSdkVersion 29
if (project.android.hasProperty("namespace")) {
namespace = "com.openwebf.webf"
}

defaultConfig {
minSdkVersion 18
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
compileSdk = 34

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

defaultConfig {
minSdk = 21
externalNativeBuild {
cmake {
arguments "-DANDROID_STL=c++_shared", "-DIS_ANDROID=TRUE"
Expand Down

0 comments on commit 8ad7c66

Please sign in to comment.