diff --git a/.gitignore b/.gitignore index c31f9a1..ffc2997 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,23 @@ /build /captures .externalNativeBuild -.idea \ No newline at end of file +.idea +*.apk +*.ap_ +*.dex +*.class +bin/ +gen/ +out/ +build/ +workspace.xml +local.properties +ks.properties +.classpath +.project +lint.xml +protected_strings.xml +/dist +/dexguard +googlePlay/ +captures/ \ No newline at end of file diff --git a/design/.gitignore b/design/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/design/.gitignore @@ -0,0 +1 @@ +/build diff --git a/design/build.gradle b/design/build.gradle new file mode 100644 index 0000000..2c65c3e --- /dev/null +++ b/design/build.gradle @@ -0,0 +1,17 @@ + +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + defaultConfig { + minSdkVersion 21 + targetSdkVersion 29 + } +} +dependencies { + api project(':app') + implementation 'com.google.android.material:material:1.1.0' + implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72" +} diff --git a/design/consumer-rules.pro b/design/consumer-rules.pro new file mode 100644 index 0000000..e69de29 diff --git a/design/proguard-rules.pro b/design/proguard-rules.pro new file mode 100644 index 0000000..f1b4245 --- /dev/null +++ b/design/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/design/src/main/AndroidManifest.xml b/design/src/main/AndroidManifest.xml new file mode 100644 index 0000000..251e0bd --- /dev/null +++ b/design/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + diff --git a/design/src/main/res/anim/bottom_sheet_slide_in.xml b/design/src/main/res/anim/bottom_sheet_slide_in.xml new file mode 100644 index 0000000..731fe64 --- /dev/null +++ b/design/src/main/res/anim/bottom_sheet_slide_in.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/design/src/main/res/anim/bottom_sheet_slide_out.xml b/design/src/main/res/anim/bottom_sheet_slide_out.xml new file mode 100644 index 0000000..b32db34 --- /dev/null +++ b/design/src/main/res/anim/bottom_sheet_slide_out.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/design/src/main/res/drawable-hdpi/illustration_pro_plan.png b/design/src/main/res/drawable-hdpi/illustration_pro_plan.png new file mode 100755 index 0000000..e7d710b Binary files /dev/null and b/design/src/main/res/drawable-hdpi/illustration_pro_plan.png differ diff --git a/design/src/main/res/drawable-xhdpi/illustration_pro_plan.png b/design/src/main/res/drawable-xhdpi/illustration_pro_plan.png new file mode 100755 index 0000000..393e910 Binary files /dev/null and b/design/src/main/res/drawable-xhdpi/illustration_pro_plan.png differ diff --git a/design/src/main/res/drawable-xxhdpi/illustration_pro_plan.png b/design/src/main/res/drawable-xxhdpi/illustration_pro_plan.png new file mode 100755 index 0000000..3e63edb Binary files /dev/null and b/design/src/main/res/drawable-xxhdpi/illustration_pro_plan.png differ diff --git a/design/src/main/res/drawable-xxxhdpi/illustration_pro_plan.png b/design/src/main/res/drawable-xxxhdpi/illustration_pro_plan.png new file mode 100755 index 0000000..eb49ed6 Binary files /dev/null and b/design/src/main/res/drawable-xxxhdpi/illustration_pro_plan.png differ diff --git a/design/src/main/res/drawable/grey_bordered_background_ripple.xml b/design/src/main/res/drawable/grey_bordered_background_ripple.xml new file mode 100644 index 0000000..39c8a8a --- /dev/null +++ b/design/src/main/res/drawable/grey_bordered_background_ripple.xml @@ -0,0 +1,13 @@ + + + + + + + + + + diff --git a/design/src/main/res/drawable/ic_ellipse.xml b/design/src/main/res/drawable/ic_ellipse.xml new file mode 100644 index 0000000..91b48ef --- /dev/null +++ b/design/src/main/res/drawable/ic_ellipse.xml @@ -0,0 +1,9 @@ + + + diff --git a/design/src/main/res/drawable/ic_pencil.xml b/design/src/main/res/drawable/ic_pencil.xml new file mode 100644 index 0000000..dc90fc6 --- /dev/null +++ b/design/src/main/res/drawable/ic_pencil.xml @@ -0,0 +1,12 @@ + + + + diff --git a/design/src/main/res/drawable/white_background_gray_ripple.xml b/design/src/main/res/drawable/white_background_gray_ripple.xml new file mode 100644 index 0000000..80d975d --- /dev/null +++ b/design/src/main/res/drawable/white_background_gray_ripple.xml @@ -0,0 +1,5 @@ + + + + diff --git a/design/src/main/res/values-v23/themes.xml b/design/src/main/res/values-v23/themes.xml new file mode 100644 index 0000000..44adbbc --- /dev/null +++ b/design/src/main/res/values-v23/themes.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/design/src/main/res/values/color.xml b/design/src/main/res/values/color.xml new file mode 100644 index 0000000..ff41731 --- /dev/null +++ b/design/src/main/res/values/color.xml @@ -0,0 +1,38 @@ + + + @color/white + @color/gray_darker + @color/curious_blue + @color/curious_blue_dark + + + + + + @color/gray_lighter + @color/white + @color/red_dark + + + + @color/text_primary + @color/white + #E63D3D3D + #333D3D3D + #F5F5F5 + #1A2C4BFF + @color/white + @color/text_secondary + @color/gray_lighter + @color/gray_light + @color/white + + #f4f7f9 + #B8B8B8 + @color/black + @color/gray_dark + @color/gray_lighter + + @color/gray_darker + @color/gray_dark + diff --git a/design/src/main/res/values/dimens.xml b/design/src/main/res/values/dimens.xml new file mode 100644 index 0000000..1b76e9a --- /dev/null +++ b/design/src/main/res/values/dimens.xml @@ -0,0 +1,16 @@ + + + 0.5dp + 4dp + 6dp + + 8dp + 16dp + + 0dp + 0dp + + 340dp + 180dp + -120dp + \ No newline at end of file diff --git a/design/src/main/res/values/motion.xml b/design/src/main/res/values/motion.xml new file mode 100644 index 0000000..cdf1738 --- /dev/null +++ b/design/src/main/res/values/motion.xml @@ -0,0 +1,26 @@ + + + + + + + + + diff --git a/design/src/main/res/values/styles.xml b/design/src/main/res/values/styles.xml new file mode 100644 index 0000000..76e8a60 --- /dev/null +++ b/design/src/main/res/values/styles.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/design/src/main/res/values/themes.xml b/design/src/main/res/values/themes.xml new file mode 100644 index 0000000..4b934fd --- /dev/null +++ b/design/src/main/res/values/themes.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample/build.gradle b/sample/build.gradle index 83b0406..dd67626 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -26,7 +26,7 @@ android { } dependencies { - implementation project(':app') + implementation project(':design') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.2.0' diff --git a/sample/src/main/AndroidManifest.xml b/sample/src/main/AndroidManifest.xml index f2cc742..b552361 100644 --- a/sample/src/main/AndroidManifest.xml +++ b/sample/src/main/AndroidManifest.xml @@ -8,7 +8,7 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/AppTheme"> + android:theme="@style/Theme.Publish"> diff --git a/sample/src/main/res/values/styles.xml b/sample/src/main/res/values/styles.xml index bb5819a..37bee64 100644 --- a/sample/src/main/res/values/styles.xml +++ b/sample/src/main/res/values/styles.xml @@ -1,11 +1,11 @@ - - diff --git a/settings.gradle b/settings.gradle index 59a4f44..fd00c16 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':sample' +include ':app', ':sample', ':design'