build.gradle 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. ndk{
  14. abiFilters "armeabi-v7a"
  15. }
  16. }
  17. sourceSets {
  18. main {
  19. // jniLibs.srcDirs 'src/main/libs'
  20. assets.srcDirs = ['src/main/assets']
  21. jni.srcDirs = []
  22. java.srcDirs = ['src/main/java']
  23. }
  24. }
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  29. }
  30. debug {
  31. minifyEnabled false
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. }
  35. signingConfigs {
  36. debug {
  37. keyAlias 'system'
  38. keyPassword 'xugame888'
  39. storeFile file('../s905_system.jks')
  40. // storeFile file('../android_4.4_haisi_zou_system.jks')//android4.4
  41. // storeFile file('../q5_t509_system.jks')
  42. // storeFile file('../q5_t509_system.jks')
  43. // storeFile file('../3399_systemkey.jks')
  44. // storeFile file('../android_10_system.jks')
  45. storePassword 'xugame888'
  46. }
  47. release {
  48. keyAlias 'system'
  49. keyPassword 'xugame888'
  50. // storeFile file('../s905_system.jks')
  51. storeFile file('../android_4.4_haisi_zou_system.jks')//android4.4
  52. storePassword 'xugame888'
  53. }
  54. }
  55. compileOptions {
  56. sourceCompatibility JavaVersion.VERSION_1_8
  57. targetCompatibility JavaVersion.VERSION_1_8
  58. }
  59. externalNativeBuild {
  60. cmake {
  61. path 'src/main/cpp/CMakeLists.txt'
  62. }
  63. }
  64. }
  65. allprojects {
  66. // repositories {
  67. // google()
  68. // jcenter()
  69. // }
  70. Properties props = new Properties()
  71. props.load(new FileInputStream(new File(project.rootDir, "retroarch.properties")))
  72. props.each { prop ->
  73. project.ext.set(prop.key, prop.value)
  74. }
  75. }
  76. dependencies {
  77. implementation 'androidx.appcompat:appcompat:1.3.0'
  78. implementation 'com.google.android.material:material:1.4.0'
  79. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  80. testImplementation 'junit:junit:4.13.2'
  81. androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  82. androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  83. }