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