build.gradle 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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('../android_4.4_haisi_zou_system.jks')//android4.4
  46. // storeFile file('../q5_t509_system.jks')
  47. // storeFile file('../q5_t509_system.jks')
  48. // storeFile file('../3399_systemkey.jks')
  49. // storeFile file('../android_10_system.jks')
  50. // storeFile file('../3288_android9_system.jks')//android10.1
  51. storePassword 'xugame888'
  52. }
  53. release {
  54. keyAlias 'system'
  55. keyPassword 'xugame888'
  56. storeFile file('../s905_system.jks')
  57. // storeFile file('../android_4.4_haisi_zou_system.jks')//android4.4
  58. storePassword 'xugame888'
  59. }
  60. }
  61. compileOptions {
  62. sourceCompatibility JavaVersion.VERSION_1_8
  63. targetCompatibility JavaVersion.VERSION_1_8
  64. }
  65. // externalNativeBuild {
  66. // cmake {
  67. // path 'src/main/cpp/CMakeLists.txt'
  68. // }
  69. // }
  70. }
  71. allprojects {
  72. // repositories {
  73. // google()
  74. // jcenter()
  75. // }
  76. Properties props = new Properties()
  77. props.load(new FileInputStream(new File(project.rootDir, "retroarch.properties")))
  78. props.each { prop ->
  79. project.ext.set(prop.key, prop.value)
  80. }
  81. }
  82. dependencies {
  83. implementation 'androidx.appcompat:appcompat:1.3.0'
  84. implementation 'com.google.android.material:material:1.4.0'
  85. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  86. testImplementation 'junit:junit:4.13.2'
  87. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  88. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  89. }