build.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'android-bintray-release'
  3. android {
  4. compileSdkVersion 21
  5. buildToolsVersion "21.1.0"
  6. defaultConfig {
  7. applicationId "com.afollestad.materialdialogs"
  8. minSdkVersion 14
  9. targetSdkVersion 21
  10. versionCode 1
  11. versionName "1.0"
  12. }
  13. buildTypes {
  14. release {
  15. runProguard false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. lintOptions {
  20. abortOnError false
  21. }
  22. }
  23. dependencies {
  24. compile fileTree(dir: 'libs', include: ['*.jar'])
  25. compile 'com.android.support:appcompat-v7:21.0.0'
  26. compile 'com.android.support:support-annotations:21.0.0'
  27. }
  28. //bintray {
  29. // apiUrl = "https://api.bintray.net"
  30. // user = 'drummer-aidan'
  31. // key = '1666f3b048571f2a7a97a0ad006a32fa5630d882'
  32. //
  33. // configurations = ['published'] //When uploading configuration files
  34. //// filesSpec { //When uploading any arbitrary files ('filesSpec' is a standard Gradle CopySpec)
  35. //// from 'arbitrary-files'
  36. //// into 'standalone_files/level1'
  37. //// rename '(.+)\\.(.+)', '$1-suffix.$2'
  38. //// }
  39. // pkg {
  40. // repo = 'maven'
  41. //// userOrg = 'myorg' //An optional organization name when the repo belongs to one of the user's orgs
  42. // name = 'material-dialogs'
  43. // desc = 'A library that allows you to use Material design themed dialogs across all versions of Android.'
  44. // websiteUrl = 'https://github.com/afollestad/material-dialogs'
  45. // issueTrackerUrl = 'https://github.com/afollestad/material-dialogs/issues'
  46. // vcsUrl = 'afollestad/material-dialogs'
  47. // licenses = ['MIT']
  48. // labels = ['android', 'library', 'dialogs', 'material-design']
  49. // publicDownloadNumbers = false
  50. // // attributes= ['a': ['ay1', 'ay2'], 'b': ['bee'], c: 'cee'] //Optional package-level attributes
  51. // //Optional version descriptor
  52. // version {
  53. // name = '0.1-Beta'
  54. // // desc = 'optional, version-specific description'
  55. // vcsTag = '0.1.0'
  56. // attributes = ['gradle-plugin': 'com.use.less:com.use.less.gradle:gradle-useless-plugin']
  57. // //Optional version-level attributes
  58. // }
  59. // }
  60. //}
  61. publish {
  62. userOrg = 'drummer-aidan'
  63. groupId = 'com.afollestad'
  64. artifactId = 'material-dialogs'
  65. version = '0.0.1'
  66. description = 'A library for implementing Material design styled dialogs across all versions of Android.'
  67. website = 'https://github.com/afollestad/material-dialogs'
  68. issueTracker = "${website}/issues" // optional - this is automatically setup for github websites
  69. repository = "${website}.git" // optional - this is automatically setup for github websites
  70. }