build.gradle.kts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. /*
  2. * Copyright (c) Milan Jurkulák 2024.
  3. * Contact:
  4. * e: mimoccc@gmail.com
  5. * e: mj@mjdev.org
  6. * w: https://mjdev.org
  7. */
  8. plugins {
  9. id("AppPlugin")
  10. }
  11. appConfig {
  12. namespace = "org.mjdev.tvapp"
  13. description = "Smart TV android app for any android device"
  14. createWebSiteFromGit = false
  15. // todo
  16. default {
  17. // buildConfigString(
  18. // "IPTV_API_URL" to "https://iptv-org.github.io/api/",
  19. // "GITHUB_USER" to "mimoccc",
  20. // "GITHUB_REPOSITORY" to "tvapp"
  21. // )
  22. // manifestPlaceholders(
  23. // "auth0Domain" to "@string/com_auth0_domain",
  24. // "auth0Scheme" to "demo"
  25. // )
  26. }
  27. // todo
  28. debug {
  29. // println("creating test bt config field")
  30. // buildConfigField("String" , "TEST", "\"TEST\"")
  31. // stringRes("app_name", "TVApp-Debug")
  32. // addSyncProviderAuthString("sync_auth", "sync")
  33. }
  34. // todo
  35. release {
  36. // stringRes("app_name", "TVApp")
  37. // addSyncProviderAuthString("sync_auth", "sync")
  38. }
  39. // todo
  40. minified {
  41. // stringRes("app_name", "TVApp-Minified")
  42. // addSyncProviderAuthString("sync_auth", "sync")
  43. }
  44. }
  45. //ospackage {
  46. // packageName = 'foo'
  47. // version = '1.2.3'
  48. // release = '1'
  49. // arch = I386
  50. // os = LINUX
  51. //
  52. // installUtils file('scripts/rpm/utils.sh')
  53. // preInstall file('scripts/rpm/preInstall.sh')
  54. // postInstall file('scripts/rpm/postInstall.sh')
  55. // preUninstall 'touch /tmp/myfile'
  56. // postUninstall file('scripts/rpm/postUninstall.sh')
  57. //
  58. // requires('qux')
  59. //
  60. // into '/opt/foo'
  61. //
  62. // from(jar.outputs.files) {
  63. // into 'lib'
  64. // }
  65. // from(configurations.runtime) {
  66. // into 'lib'
  67. // }
  68. // from('lib') {
  69. // into 'lib'
  70. // }
  71. // from('scripts') {
  72. // into 'bin'
  73. // exclude 'database'
  74. // fileMode = 0550
  75. // }
  76. // from('src/main/resources') {
  77. // fileType CONFIG | NOREPLACE
  78. // into 'conf'
  79. // }
  80. // from('home') {
  81. // // Creating directory entries (or not) in the RPM is normally left up to redline-rpm library.
  82. // // Use this to explicitly create an entry -- for setting directory fileMode on system directories.
  83. // createDirectoryEntry = true
  84. // fileMode = 0500
  85. // into 'home'
  86. // }
  87. // from('endorsed') {
  88. // // Will tell redline-rpm not to auto create directories, which
  89. // // is sometimes necessary to avoid rpm directory conflicts
  90. // addParentDirs = false
  91. // into '/usr/share/tomcat/endorsed'
  92. // }
  93. //
  94. //}
  95. //
  96. //buildRpm {
  97. // requires('bar', '2.2', GREATER | EQUAL)
  98. // requires('baz', '1.0.1', LESS)
  99. // link('/etc/init.d/foo’, '/opt/foo/bin/foo.init')
  100. //}
  101. //
  102. //buildDeb {
  103. // requires('bat', '1.0.1')
  104. // link('/etc/init.d/foo', '/opt/foo/bin/foo.upstart')
  105. //}