Fragment lifecycle events
This CL adds support for fragment lifecycle events.
For now, there is a temporary LifecycleFragment. It will go
away and we'll use Fragment class when project is released.
Bug: 32342385
Test: DispatcherActivityCallbackTest, FragmentCallbackTest
Test: FragmentLifecycleTest
Change-Id: Idd32c2379c82d6c3cc11a74f28008d2ed186704a
diff --git a/lifecycle/runtime/build.gradle b/lifecycle/runtime/build.gradle
index 35ca202..e6b9987 100644
--- a/lifecycle/runtime/build.gradle
+++ b/lifecycle/runtime/build.gradle
@@ -30,8 +30,14 @@
compile project(":lifecycle:common")
// using classes like Pair from support core allows Lifecycle to be compatible w/ junit tests
compile "com.android.support:support-fragment:$support_lib_version"
+
testCompile "junit:junit:$junit_version"
testCompile "org.mockito:mockito-core:$mockito_version"
+
+ androidTestCompile "com.android.support:appcompat-v7:$support_lib_version"
+ androidTestCompile("com.android.support.test.espresso:espresso-core:$espresso_version", {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ })
}
createAndroidCheckstyle(project)
@@ -39,7 +45,7 @@
uploadArchives {
repositories {
mavenDeployer {
- repository(url : rootProject.ext.localMavenRepo)
+ repository(url: rootProject.ext.localMavenRepo)
pom.artifactId = "runtime"
}
}