build.gradle 2.3 KB

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