mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-09-03 08:10:23 +00:00
增加server代码,android studio可直接编译
This commit is contained in:
parent
4c6e017322
commit
1ed6c20548
27 changed files with 1965 additions and 0 deletions
28
server/config/android-checkstyle.gradle
Normal file
28
server/config/android-checkstyle.gradle
Normal file
|
@ -0,0 +1,28 @@
|
|||
apply plugin: 'checkstyle'
|
||||
check.dependsOn 'checkstyle'
|
||||
|
||||
checkstyle {
|
||||
toolVersion = '6.19'
|
||||
}
|
||||
|
||||
task checkstyle(type: Checkstyle) {
|
||||
description = "Check Java style with Checkstyle"
|
||||
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
|
||||
source = javaSources()
|
||||
classpath = files()
|
||||
ignoreFailures = true
|
||||
}
|
||||
|
||||
def javaSources() {
|
||||
def files = []
|
||||
android.sourceSets.each { sourceSet ->
|
||||
sourceSet.java.each { javaSource ->
|
||||
javaSource.getSrcDirs().each {
|
||||
if (it.exists()) {
|
||||
files.add(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return files
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue