build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* Licensed to the Apache Software Foundation (ASF) under one
  2. or more contributor license agreements. See the NOTICE file
  3. distributed with this work for additional information
  4. regarding copyright ownership. The ASF licenses this file
  5. to you under the Apache License, Version 2.0 (the
  6. "License"); you may not use this file except in compliance
  7. with the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing,
  10. software distributed under the License is distributed on an
  11. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. KIND, either express or implied. See the License for the
  13. specific language governing permissions and limitations
  14. under the License.
  15. */
  16. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  17. buildscript {
  18. repositories {
  19. google()
  20. jcenter()
  21. }
  22. dependencies {
  23. // NOTE: Do not place your application dependencies here; they belong
  24. // in the individual module build.gradle files
  25. classpath 'com.android.tools.build:gradle:4.1.0'
  26. }
  27. }
  28. allprojects {
  29. repositories {
  30. google()
  31. jcenter()
  32. }
  33. //This replaces project.properties w.r.t. build settings
  34. project.ext {
  35. defaultBuildToolsVersion="28.0.3" //String
  36. defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
  37. defaultTargetSdkVersion=28 //Integer - We ALWAYS target the latest by default
  38. defaultCompileSdkVersion=28 //Integer - We ALWAYS compile with the latest by default
  39. }
  40. }
  41. task clean(type: Delete) {
  42. delete rootProject.buildDir
  43. }