add android sample gradle support

This commit is contained in:
gengjiawen
2019-04-07 22:23:34 +08:00
parent 3d8afa9e90
commit 4fc172c307
32 changed files with 39 additions and 13 deletions

View File

@@ -0,0 +1,30 @@
/**
* 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.application'
android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
defaultConfig {
applicationId "com.facebook.samples.yoga"
minSdkVersion rootProject.minSdkVersion
targetSdkVersion rootProject.targetSdkVersion
}
compileOptions {
targetCompatibility rootProject.targetCompatibilityVersion
sourceCompatibility rootProject.sourceCompatibilityVersion
}
}
dependencies {
implementation project(':yoga-layout')
implementation "com.android.support:appcompat-v7:28.0.0"
implementation "com.facebook.soloader:soloader:0.6.0"
}