Skip to content

Commit 84d6734

Browse files
committed
refactor: add navigation gradle module
1 parent d92a363 commit 84d6734

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed

library/scene_navigation/build.gradle

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
apply plugin: 'com.android.library'
2+
3+
android {
4+
compileSdkVersion rootProject.ext.compileSdkVersion
5+
6+
defaultConfig {
7+
minSdkVersion rootProject.ext.miniSdkVersion
8+
}
9+
resourcePrefix 'scene_'
10+
11+
testOptions {
12+
unitTests {
13+
includeAndroidResources = true
14+
}
15+
}
16+
}
17+
18+
dependencies {
19+
implementation APPCOMPAT_LIB
20+
implementation DESIGN_LIB
21+
api project(path: ':library:scene')
22+
23+
testImplementation ROBOLECTRIC
24+
testImplementation JUNIT
25+
testAnnotationProcessor AUTO_SERVICE
26+
testCompileOnly AUTO_SERVICE
27+
}
28+
29+
tasks.withType(Test) {
30+
testLogging {
31+
events "failed"
32+
}
33+
34+
afterSuite { desc, result ->
35+
if (!desc.parent)
36+
println("${result.resultType} " +
37+
"(${result.testCount} tests, " +
38+
"${result.successfulTestCount} successes, " +
39+
"${result.failedTestCount} failures, " +
40+
"${result.skippedTestCount} skipped)")
41+
}
42+
}
43+
44+
task javadoc(type: Javadoc) {
45+
source = android.sourceSets.main.java.srcDirs
46+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
47+
destinationDir = file("../javadoc/scene_dialog/")
48+
failOnError false
49+
title = null
50+
51+
options {
52+
doclet = "com.google.doclava.Doclava"
53+
docletpath(new File(project.rootDir, "tools/doclava-1.0.6.jar"))
54+
locale "en_US"
55+
encoding "UTF-8"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.bytedance.scene.navigation">
3+
<application>
4+
5+
</application>
6+
</manifest>

settings.gradle

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include ':library:scene'
2+
include ':library:scene_navigation'
23
include ':library:scene_ui'
34
include ':library:scene_shared_element_animation'
45
include ':library:scene_ktx'

0 commit comments

Comments
 (0)