launcherTemplate.gradle 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  2. apply plugin: 'com.android.application'
  3. dependencies {
  4. implementation project(':unityLibrary')
  5. }
  6. android {
  7. compileSdkVersion **APIVERSION**
  8. buildToolsVersion '**BUILDTOOLS**'
  9. compileOptions {
  10. sourceCompatibility JavaVersion.VERSION_1_8
  11. targetCompatibility JavaVersion.VERSION_1_8
  12. }
  13. defaultConfig {
  14. minSdkVersion **MINSDKVERSION**
  15. targetSdkVersion **TARGETSDKVERSION**
  16. applicationId '**APPLICATIONID**'
  17. ndk {
  18. abiFilters **ABIFILTERS**
  19. }
  20. versionCode **VERSIONCODE**
  21. versionName '**VERSIONNAME**'
  22. }
  23. aaptOptions {
  24. noCompress = ['.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')
  25. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  26. }**SIGN**
  27. lintOptions {
  28. abortOnError false
  29. }
  30. buildTypes {
  31. debug {
  32. minifyEnabled **MINIFY_DEBUG**
  33. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  34. jniDebuggable true
  35. }
  36. release {
  37. minifyEnabled **MINIFY_RELEASE**
  38. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  39. }
  40. }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**
  41. **BUILT_APK_LOCATION**
  42. bundle {
  43. language {
  44. enableSplit = false
  45. }
  46. density {
  47. enableSplit = false
  48. }
  49. abi {
  50. enableSplit = true
  51. }
  52. }
  53. }**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**
  54. apply plugin: 'com.mob.sdk'
  55. MobSDK {
  56. appKey "39cb75f714db3"
  57. appSecret "7fdbd1e2d3fd5beaa360d7eca51d844e"
  58. ShareSDK {
  59. //第三方平台配置
  60. devInfo {
  61. SinaWeibo {
  62. id 1
  63. sortId 59
  64. appKey "4026427899"
  65. appSecret "f3f473d16e26626c09b1797e5e2614f8"
  66. callbackUri "http://www.sharesdk.cn"
  67. shareByAppClient true
  68. enable true
  69. }
  70. TencentWeibo {
  71. id 2
  72. sortId 2
  73. appKey "801307650"
  74. appSecret "ae36f4ee3946e1cbb98d6965b0b2ff5c"
  75. callbackUri "http://sharesdk.cn"
  76. enable true
  77. }
  78. Wechat {
  79. id 4
  80. sortId 4
  81. appId "wxf8452955e8de2e46"
  82. appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
  83. withShareTicket true
  84. bypassApproval true
  85. enable true
  86. }
  87. WechatMoments {
  88. id 5
  89. sortId 5
  90. appId "wxf8452955e8de2e46"
  91. appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
  92. bypassApproval true
  93. enable true
  94. }
  95. WeChatFavorites{
  96. id 6
  97. sortId 6
  98. appId "wxf8452955e8de2e46"
  99. appSecret "f9fcae1666d6e9e24cac0f7dd395433d"
  100. bypassApproval true
  101. enable true
  102. }
  103. QZone {
  104. id 3
  105. sortId 3
  106. appId "100371282"
  107. appKey "aed9b0303e3ed1e27bae87c33761161d"
  108. shareByAppClient true
  109. bypassApproval false
  110. enable true
  111. }
  112. QQ {
  113. id 7
  114. sortId 7
  115. appId "100371282"
  116. appKey "aed9b0303e3ed1e27bae87c33761161d"
  117. shareByAppClient true
  118. bypassApproval false
  119. enable true
  120. }
  121. //如果需要,添加其他第三方平台的配置
  122. }
  123. }
  124. }