build.gradle.kts 2.9 KB

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