diff options
Diffstat (limited to 'src/android/jar/build.gradle')
-rw-r--r-- | src/android/jar/build.gradle | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/android/jar/build.gradle b/src/android/jar/build.gradle new file mode 100644 index 0000000000..452d4ad780 --- /dev/null +++ b/src/android/jar/build.gradle @@ -0,0 +1,52 @@ +// This is mainly used to allow Android Studio to easily read this folder as an android project. + +buildscript { + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:8.0.2' + } +} + +apply plugin: 'com.android.library' + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) +} + +repositories { + google() + mavenCentral() +} + +android { + compileSdk 34 + namespace "org.qtproject.qt.android" + + defaultConfig { + minSdkVersion 23 + } + + sourceSets { + main { + java.srcDir 'src/' + resources.srcDir 'libs/' + manifest.srcFile 'AndroidManifest.xml' + res.srcDirs = ['res/'] + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + android { + lintOptions { + abortOnError true + } + } +} |