Skip to content

Commit

Permalink
Add gradle support for litho-sections-widget
Browse files Browse the repository at this point in the history
Summary: Gradle build support, without releases for now.

Reviewed By: IanChilds

Differential Revision: D5890339

fbshipit-source-id: e00e641dd40454d5fb20757e5c43c8e04f87eb4a
  • Loading branch information
passy authored and facebook-github-bot committed Sep 25, 2017
1 parent 16e093b commit f07a7f2
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
41 changes: 41 additions & 0 deletions litho-sections-widget/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/

apply plugin: 'com.android.library'
apply plugin: 'maven'

project.group = GROUP
version = VERSION_NAME

android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion

defaultConfig {
minSdkVersion rootProject.minSdkVersion
}
}

dependencies {
// Project dependencies
compileOnly project(':litho-annotations')
compileOnly project(':litho-sections-annotations')
implementation project(':litho-sections-core')
implementation project(':litho-core')
implementation project(':litho-widget')
annotationProcessor project(':litho-sections-processor')

// compileOnly dependencies
compileOnly deps.jsr305

// Android Support Library
compileOnly deps.supportAnnotations
implementation deps.supportRecyclerView
implementation deps.supportCoreUi
}
13 changes: 13 additions & 0 deletions litho-sections-widget/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2017-present, Facebook, Inc.
~ All rights reserved.
~
~ This source code is licensed under the BSD-style license found in the
~ LICENSE file in the root directory of this source tree. An additional grant
~ of patent rights can be found in the PATENTS file in the same directory.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.facebook.litho.sections.widget">
</manifest>
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ include ':litho-processor'
include ':litho-sections-annotations'
include ':litho-sections-core'
include ':litho-sections-processor'
include ':litho-sections-widget'
include ':litho-stetho'
include ':litho-stubs'
include ':litho-testing'
Expand Down

0 comments on commit f07a7f2

Please sign in to comment.