build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 27
  6. defaultConfig {
  7. applicationId "org.mozilla.firefoxsend"
  8. minSdkVersion 26
  9. targetSdkVersion 27
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. implementation fileTree(dir: 'libs', include: ['*.jar'])
  23. implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  24. implementation 'com.android.support:appcompat-v7:27.1.1'
  25. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  26. testImplementation 'junit:junit:4.12'
  27. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  28. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  29. implementation 'com.github.delight-im:Android-AdvancedWebView:v3.0.0'
  30. implementation "org.mozilla.components:service-firefox-accounts:$android_components_version"
  31. }
  32. task generateAndLinkBundle(type: Exec, description: 'Generate the android.js bundle and link it into the assets directory') {
  33. commandLine './buildAssets.sh'
  34. }
  35. tasks.withType(JavaCompile) {
  36. compileTask -> compileTask.dependsOn generateAndLinkBundle
  37. }