Skip to content

Commit

Permalink
android building
Browse files Browse the repository at this point in the history
  • Loading branch information
TuxPaper committed Jan 15, 2021
1 parent 60ac36f commit 295b886
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
*.zip
*.jar
*.bak
/build/
49 changes: 49 additions & 0 deletions android-build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apply plugin: 'java-library'

/*
To use this in Android Studio, place something like the following in your root settings.gradle
include ':BiglyBT-plugin-mlDHT'
project(':BiglyBT-plugin-mlDHT').buildFileName = 'android-build.gradle'
or, just rename this file to build.gradle
I couldn't figure out how to get Android Studio/gradle to use a different sourceset
*/

compileJava.options.encoding = "UTF-8"

sourceSets {
main {
java {
srcDirs = [
'.'
]
exclude 'com/aelitis/plugins/rcmplugin/RelatedContentUISWT**'
exclude 'com/aelitis/plugins/rcmplugin/SBC_RCMView*'
exclude 'com/aelitis/plugins/rcmplugin/RCM_SubViewHolder*'
exclude 'com/aelitis/plugins/rcmplugin/RCM_SubView*'
exclude 'com/aelitis/plugins/rcmplugin/columns/**'
}

resources {
includes = [
'com/aelitis/plugins/rcmplugin/internat/*.properties',
'com/aelitis/plugins/rcmplugin/resources/**'
]
srcDirs = [
'.'
]
exclude 'plugin.properties'
exclude 'build/**'
exclude 'build'
}
}
}

dependencies {
implementation project(path: ':core')
}

java {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

0 comments on commit 295b886

Please sign in to comment.