build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. apply plugin: 'com.android.library'
  5. repositories {
  6. maven { url "https://maven.google.com" }
  7. }
  8. android {
  9. compileSdkVersion 27
  10. defaultConfig {
  11. minSdkVersion 16
  12. targetSdkVersion 27
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. }
  24. dependencies {
  25. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  26. implementation 'androidx.appcompat:appcompat:1.0.2'
  27. testImplementation 'junit:junit:4.12'
  28. androidTestImplementation 'androidx.test:runner:1.2.0'
  29. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  30. api ('com.google.firebase:firebase-ads:18.2.0')
  31. api 'com.mopub.mediation:admob:17.1.2.1'
  32. implementation 'com.google.android.ads.consent:consent-library:1.0.6'
  33. implementation 'com.mopub.mediation:facebookaudiencenetwork:5.0.0.0'
  34. implementation('com.mopub:mopub-sdk:5.3.0@aar') {
  35. transitive = true
  36. exclude module: 'libAvid-mopub' // To exclude AVID
  37. exclude module: 'moat-mobile-app-kit' // To exclude Moat
  38. }
  39. }