build.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. applicationId "com.xugame.gameconsole"
  8. minSdk 19
  9. targetSdk 32
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. // externalNativeBuild {
  14. // cmake {
  15. // arguments '-DANDROID_STL=c++_shared'
  16. // }
  17. // }
  18. ndk{
  19. abiFilters "armeabi-v7a"
  20. }
  21. }
  22. sourceSets {
  23. main {
  24. jniLibs.srcDirs 'src/main/libs'
  25. assets.srcDirs = ['src/main/assets']
  26. jni.srcDirs = []
  27. java.srcDirs = ['src/main/java']
  28. }
  29. }
  30. buildTypes {
  31. release {
  32. minifyEnabled false
  33. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  34. }
  35. debug {
  36. minifyEnabled false
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. signingConfigs {
  41. debug {
  42. keyAlias 'system'
  43. keyPassword 'xugame888'
  44. // storeFile file('../s905_system.jks')
  45. storeFile file('../3588_ma_system.jks')
  46. // storeFile file('../android_4.4_haisi_zou_system.jks')//android4.4
  47. // storeFile file('../q5_t509_system.jks')
  48. // storeFile file('../q5_t509_system.jks')
  49. // storeFile file('../3399_systemkey.jks')
  50. // storeFile file('../android_10_system.jks')
  51. // storeFile file('../3288_android9_system.jks')//android10.1
  52. storePassword 'xugame888'
  53. }
  54. release {
  55. keyAlias 'system'
  56. keyPassword 'xugame888'
  57. storeFile file('../s905_system.jks')
  58. // storeFile file('../android_4.4_haisi_zou_system.jks')//android4.4
  59. storePassword 'xugame888'
  60. }
  61. }
  62. compileOptions {
  63. sourceCompatibility JavaVersion.VERSION_1_8
  64. targetCompatibility JavaVersion.VERSION_1_8
  65. }
  66. // externalNativeBuild {
  67. // cmake {
  68. // path 'src/main/cpp/CMakeLists.txt'
  69. // }
  70. // }
  71. }
  72. allprojects {
  73. // repositories {
  74. // google()
  75. // jcenter()
  76. // }
  77. Properties props = new Properties()
  78. props.load(new FileInputStream(new File(project.rootDir, "retroarch.properties")))
  79. props.each { prop ->
  80. project.ext.set(prop.key, prop.value)
  81. }
  82. }
  83. dependencies {
  84. implementation 'androidx.appcompat:appcompat:1.3.0'
  85. implementation 'com.google.android.material:material:1.4.0'
  86. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  87. testImplementation 'junit:junit:4.13.2'
  88. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  89. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  90. }