1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- group 'com.pauldemarco.flutterblue'
- version '1.0-SNAPSHOT'
-
- buildscript {
- repositories {
- google()
- jcenter()
- }
-
- dependencies {
- classpath 'com.android.tools.build:gradle:3.3.0'
- classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.7'
- }
- }
-
- rootProject.allprojects {
- repositories {
- google()
- jcenter()
- }
- }
-
- apply plugin: 'com.android.library'
- apply plugin: 'com.google.protobuf'
-
- android {
- compileSdkVersion 28
-
- defaultConfig {
- minSdkVersion 19
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- lintOptions {
- disable 'InvalidPackage'
- }
- dependencies {
- // Required for local unit tests (JUnit 4 framework)
- testImplementation 'junit:junit:4.12'
- implementation 'androidx.core:core:1.0.1'
- //compile files('/home/paul/flutter/bin/cache/artifacts/engine/android-arm/flutter.jar')
- }
- sourceSets {
- main {
- proto {
- srcDir '../protos'
- }
- }
- }
- }
-
- protobuf {
- // Configure the protoc executable
- protoc {
- // Download from repositories
- artifact = 'com.google.protobuf:protoc:3.6.1'
- }
- plugins {
- javalite {
- // The codegen for lite comes as a separate artifact
- artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
- }
- }
- generateProtoTasks {
- all().each { task ->
- task.plugins {
- javalite { }
- }
- }
- }
- }
-
- dependencies {
- implementation 'com.google.protobuf:protobuf-lite:3.0.1'
- }
|