diff --git a/android/plugins/jetpack-compose/build.gradle b/android/plugins/jetpack-compose/build.gradle new file mode 100644 index 000000000..c3b7586c4 --- /dev/null +++ b/android/plugins/jetpack-compose/build.gradle @@ -0,0 +1,34 @@ +/* + * Copyright (c) Meta Platforms, Inc. and 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' + +android { + namespace 'com.facebook.flipper.plugins.jetpackcompose' + compileSdkVersion rootProject.compileSdkVersion + buildToolsVersion rootProject.buildToolsVersion + + defaultConfig { + minSdkVersion rootProject.minSdkVersion + targetSdkVersion rootProject.targetSdkVersion + } + + compileOptions { + targetCompatibility rootProject.javaTargetVersion + sourceCompatibility rootProject.javaTargetVersion + } + + dependencies { + implementation project(':android') + implementation 'androidx.compose.ui:ui:1.4.3' + implementation 'androidx.compose.ui:ui-tooling:1.4.3' + implementation 'org.jetbrains.kotlin:kotlin-reflect:1.8.22' + } +} + +apply plugin: 'com.vanniktech.maven.publish' diff --git a/android/plugins/jetpack-compose/gradle.properties b/android/plugins/jetpack-compose/gradle.properties new file mode 100644 index 000000000..9de462875 --- /dev/null +++ b/android/plugins/jetpack-compose/gradle.properties @@ -0,0 +1,12 @@ +# +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the LICENSE +# file in the root directory of this source tree. +# + +POM_NAME=Flipper Jetpack Compose UIDebugger Plugin +POM_DESCRIPTION=Jetpack Compose Plugin for the Flipper UIDebugger +POM_ARTIFACT_ID=flipper-jetpack-compose-plugin +POM_PACKAGING=aar + diff --git a/settings.gradle b/settings.gradle index 223366ba1..91a4f36a9 100644 --- a/settings.gradle +++ b/settings.gradle @@ -42,3 +42,6 @@ project(':leakcanary2-plugin').projectDir = file('android/plugins/leakcanary2') include ':retrofit2-protobuf' project(':retrofit2-protobuf').projectDir = file('android/plugins/retrofit2-protobuf') + +include ':jetpack-compose-plugin' +project(':jetpack-compose-plugin').projectDir = file('android/plugins/jetpack-compose')