build.gradle 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. buildToolsVersion "28.0.3"
  5. lintOptions {
  6. // Fix nifty gui referencing "java.awt" package.
  7. disable 'InvalidPackage'
  8. abortOnError false
  9. }
  10. defaultConfig {
  11. applicationId "org.jmonkeyengine.jme3androidexamples"
  12. minSdkVersion 15 // Android 4.0.3 ICE CREAM SANDWICH
  13. targetSdkVersion 28 // Android 9 PIE
  14. versionCode 1
  15. versionName "1.0" // TODO: from settings.gradle
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. sourceSets {
  28. main {
  29. java {
  30. srcDir 'src/main/java'
  31. }
  32. assets {
  33. srcDir 'src/assets'
  34. srcDir '../jme3-testdata/src/main/resources'
  35. srcDir '../jme3-examples/src/main/resources'
  36. }
  37. }
  38. }
  39. }
  40. dependencies {
  41. compile fileTree(dir: 'libs', include: ['*.jar'])
  42. testCompile 'junit:junit:4.12'
  43. compile 'com.android.support:appcompat-v7:28.0.0'
  44. compile project(':jme3-core')
  45. compile project(':jme3-android')
  46. compile project(':jme3-android-native')
  47. compile project(':jme3-effects')
  48. compile project(':jme3-bullet')
  49. compile project(':jme3-bullet-native-android')
  50. compile project(':jme3-networking')
  51. compile project(':jme3-niftygui')
  52. compile project(':jme3-plugins')
  53. compile project(':jme3-terrain')
  54. compile fileTree(dir: '../jme3-examples/build/libs', include: ['*.jar'], exclude: ['*sources*.*'])
  55. // compile project(':jme3-examples')
  56. }