build.gradle 2.3 KB

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