Summary: **Update protobuf library with new support for `enum` and `oneof` types** ## Changelog - Update plugin code for library API changes and other cleanup - Add instructions to readme Pull Request resolved: https://github.com/facebook/flipper/pull/2381 Test Plan: see demo app at https://github.com/hbmartin/protobuf_java_to_protobufjs Reviewed By: priteshrnandgaonkar Differential Revision: D28831035 Pulled By: passy fbshipit-source-id: 46e196293330b615394606bd3486ea47ad6a0630
34 lines
1.0 KiB
Groovy
34 lines
1.0 KiB
Groovy
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
apply plugin: 'com.android.library'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.compileSdkVersion
|
|
buildToolsVersion rootProject.buildToolsVersion
|
|
|
|
defaultConfig {
|
|
minSdkVersion rootProject.minSdkVersion
|
|
targetSdkVersion rootProject.targetSdkVersion
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$KOTLIN_VERSION"
|
|
implementation project(':android')
|
|
implementation project(':network-plugin')
|
|
implementation deps.protobuf
|
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
|
implementation "com.github.hbmartin:protobuf_java_to_protobufjs:0.1.0"
|
|
compileOnly deps.jsr305
|
|
}
|
|
}
|
|
|
|
apply plugin: 'com.vanniktech.maven.publish'
|