build.gradle 2.7 KB

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