mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-24 18:27:11 -07:00
Added AboutBox library source code. Implemented IAnalytic and IDialog interfaces for custom usage.
This commit is contained in:
parent
8a88eb2217
commit
8b28ebfb79
56 changed files with 1296 additions and 0 deletions
22
.idea/compiler.xml
generated
Normal file
22
.idea/compiler.xml
generated
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CompilerConfiguration">
|
||||||
|
<resourceExtensions />
|
||||||
|
<wildcardResourcePatterns>
|
||||||
|
<entry name="!?*.java" />
|
||||||
|
<entry name="!?*.form" />
|
||||||
|
<entry name="!?*.class" />
|
||||||
|
<entry name="!?*.groovy" />
|
||||||
|
<entry name="!?*.scala" />
|
||||||
|
<entry name="!?*.flex" />
|
||||||
|
<entry name="!?*.kt" />
|
||||||
|
<entry name="!?*.clj" />
|
||||||
|
<entry name="!?*.aj" />
|
||||||
|
</wildcardResourcePatterns>
|
||||||
|
<annotationProcessing>
|
||||||
|
<profile default="true" name="Default" enabled="false">
|
||||||
|
<processorPath useClasspath="true" />
|
||||||
|
</profile>
|
||||||
|
</annotationProcessing>
|
||||||
|
</component>
|
||||||
|
</project>
|
3
.idea/copyright/profiles_settings.xml
generated
Normal file
3
.idea/copyright/profiles_settings.xml
generated
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<component name="CopyrightManager">
|
||||||
|
<settings default="" />
|
||||||
|
</component>
|
18
.idea/gradle.xml
generated
Normal file
18
.idea/gradle.xml
generated
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="GradleSettings">
|
||||||
|
<option name="linkedExternalProjectsSettings">
|
||||||
|
<GradleProjectSettings>
|
||||||
|
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||||
|
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||||
|
<option name="modules">
|
||||||
|
<set>
|
||||||
|
<option value="$PROJECT_DIR$" />
|
||||||
|
<option value="$PROJECT_DIR$/library" />
|
||||||
|
</set>
|
||||||
|
</option>
|
||||||
|
<option name="resolveModulePerSourceSet" value="false" />
|
||||||
|
</GradleProjectSettings>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
12
.idea/libraries/animated_vector_drawable_25_1_0.xml
generated
Normal file
12
.idea/libraries/animated_vector_drawable_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="animated-vector-drawable-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/animated-vector-drawable/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/animated-vector-drawable/25.1.0/animated-vector-drawable-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
10
.idea/libraries/answers_shim_0_0_6.xml
generated
Normal file
10
.idea/libraries/answers_shim_0_0_6.xml
generated
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="answers-shim-0.0.6">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.crashlytics.sdk.android/answers-shim/0.0.6/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.crashlytics.sdk.android/answers-shim/0.0.6/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/appcompat_v7_25_1_0.xml
generated
Normal file
12
.idea/libraries/appcompat_v7_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="appcompat-v7-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.1.0/appcompat-v7-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/cardview_v7_25_1_0.xml
generated
Normal file
12
.idea/libraries/cardview_v7_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="cardview-v7-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/cardview-v7/25.1.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/cardview-v7/25.1.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/cardview-v7/25.1.0/cardview-v7-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/design_25_1_0.xml
generated
Normal file
12
.idea/libraries/design_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="design-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/design/25.1.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/design/25.1.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/design/25.1.0/design-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/library_2_5_7.xml
generated
Normal file
12
.idea/libraries/library_2_5_7.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="library-2.5.7">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/io.branch.sdk.android/library/2.5.7/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/io.branch.sdk.android/library/2.5.7/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/io.branch.sdk.android/library/2.5.7/72c56965e9f432e245fe85536f56fd3c688af6cf/library-2.5.7-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
10
.idea/libraries/material_about_library_1_5_0.xml
generated
Normal file
10
.idea/libraries/material_about_library_1_5_0.xml
generated
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="material-about-library-1.5.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.github.daniel-stoneuk/material-about-library/1.5.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.github.daniel-stoneuk/material-about-library/1.5.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/recyclerview_v7_25_1_0.xml
generated
Normal file
12
.idea/libraries/recyclerview_v7_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="recyclerview-v7-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/recyclerview-v7/25.1.0/recyclerview-v7-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
11
.idea/libraries/support_annotations_25_1_0.xml
generated
Normal file
11
.idea/libraries/support_annotations_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-annotations-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.0/support-annotations-25.1.0.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-annotations/25.1.0/support-annotations-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_compat_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_compat_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-compat-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-compat/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-compat/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-compat/25.1.0/support-compat-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_core_ui_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_core_ui_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-core-ui-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-core-ui/25.1.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-core-ui/25.1.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-core-ui/25.1.0/support-core-ui-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_core_utils_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_core_utils_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-core-utils-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-core-utils/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-core-utils/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-core-utils/25.1.0/support-core-utils-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_fragment_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_fragment_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-fragment-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-fragment/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-fragment/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-fragment/25.1.0/support-fragment-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_media_compat_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_media_compat_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-media-compat-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-media-compat/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-media-compat/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-media-compat/25.1.0/support-media-compat-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
10
.idea/libraries/support_v4_25_1_0.xml
generated
Normal file
10
.idea/libraries/support_v4_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-v4-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-v4/25.1.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-v4/25.1.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES />
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/support_vector_drawable_25_1_0.xml
generated
Normal file
12
.idea/libraries/support_vector_drawable_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="support-vector-drawable-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/25.1.0/jars/classes.jar!/" />
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/support-vector-drawable/25.1.0/res" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/support-vector-drawable/25.1.0/support-vector-drawable-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
12
.idea/libraries/transition_25_1_0.xml
generated
Normal file
12
.idea/libraries/transition_25_1_0.xml
generated
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<component name="libraryTable">
|
||||||
|
<library name="transition-25.1.0">
|
||||||
|
<CLASSES>
|
||||||
|
<root url="file://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/transition/25.1.0/res" />
|
||||||
|
<root url="jar://$PROJECT_DIR$/library/build/intermediates/exploded-aar/com.android.support/transition/25.1.0/jars/classes.jar!/" />
|
||||||
|
</CLASSES>
|
||||||
|
<JAVADOC />
|
||||||
|
<SOURCES>
|
||||||
|
<root url="jar://$USER_HOME$/AppData/Local/Android/Sdk/extras/android/m2repository/com/android/support/transition/25.1.0/transition-25.1.0-sources.jar!/" />
|
||||||
|
</SOURCES>
|
||||||
|
</library>
|
||||||
|
</component>
|
41
.idea/misc.xml
generated
Normal file
41
.idea/misc.xml
generated
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="EntryPointsManager">
|
||||||
|
<entry_points version="2.0" />
|
||||||
|
</component>
|
||||||
|
<component name="NullableNotNullManager">
|
||||||
|
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
|
||||||
|
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
|
||||||
|
<option name="myNullables">
|
||||||
|
<value>
|
||||||
|
<list size="4">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||||
|
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
<option name="myNotNulls">
|
||||||
|
<value>
|
||||||
|
<list size="4">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
|
||||||
|
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
|
||||||
|
</list>
|
||||||
|
</value>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
||||||
|
<OptionsSetting value="true" id="Add" />
|
||||||
|
<OptionsSetting value="true" id="Remove" />
|
||||||
|
<OptionsSetting value="true" id="Checkout" />
|
||||||
|
<OptionsSetting value="true" id="Update" />
|
||||||
|
<OptionsSetting value="true" id="Status" />
|
||||||
|
<OptionsSetting value="true" id="Edit" />
|
||||||
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
|
||||||
|
</project>
|
9
.idea/modules.xml
generated
Normal file
9
.idea/modules.xml
generated
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/android-about-box.iml" filepath="$PROJECT_DIR$/android-about-box.iml" />
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/library/library.iml" filepath="$PROJECT_DIR$/library/library.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
24
build.gradle
Normal file
24
build.gradle
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.android.tools.build:gradle:2.2.0'
|
||||||
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
|
||||||
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
// in the individual module build.gradle files
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
jcenter()
|
||||||
|
maven { url "https://jitpack.io" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task clean(type: Delete) {
|
||||||
|
delete rootProject.buildDir
|
||||||
|
}
|
12
circle.yml
Normal file
12
circle.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
dependencies:
|
||||||
|
pre:
|
||||||
|
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-24
|
||||||
|
- echo y | android update sdk --no-ui --all --filter build-tools-24.0.2
|
||||||
|
|
||||||
|
test:
|
||||||
|
override:
|
||||||
|
# run lint (tests will come next ...)
|
||||||
|
- ./gradlew :library:check
|
||||||
|
|
||||||
|
# copy results
|
||||||
|
- cp -r library/build/outputs $CIRCLE_ARTIFACTS
|
18
gradle.properties
Normal file
18
gradle.properties
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Project-wide Gradle settings.
|
||||||
|
|
||||||
|
# IDE (e.g. Android Studio) users:
|
||||||
|
# Gradle settings configured through the IDE *will override*
|
||||||
|
# any settings specified in this file.
|
||||||
|
|
||||||
|
# For more details on how to configure your build environment visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
|
|
||||||
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
|
# Default value: -Xmx10248m -XX:MaxPermSize=256m
|
||||||
|
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
||||||
|
|
||||||
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
# org.gradle.parallel=true
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
6
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#Mon Dec 28 10:00:20 PST 2015
|
||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
|
160
gradlew
vendored
Normal file
160
gradlew
vendored
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
##
|
||||||
|
## Gradle start up script for UN*X
|
||||||
|
##
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS=""
|
||||||
|
|
||||||
|
APP_NAME="Gradle"
|
||||||
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
|
MAX_FD="maximum"
|
||||||
|
|
||||||
|
warn ( ) {
|
||||||
|
echo "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
die ( ) {
|
||||||
|
echo
|
||||||
|
echo "$*"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
# OS specific support (must be 'true' or 'false').
|
||||||
|
cygwin=false
|
||||||
|
msys=false
|
||||||
|
darwin=false
|
||||||
|
case "`uname`" in
|
||||||
|
CYGWIN* )
|
||||||
|
cygwin=true
|
||||||
|
;;
|
||||||
|
Darwin* )
|
||||||
|
darwin=true
|
||||||
|
;;
|
||||||
|
MINGW* )
|
||||||
|
msys=true
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Attempt to set APP_HOME
|
||||||
|
# Resolve links: $0 may be a link
|
||||||
|
PRG="$0"
|
||||||
|
# Need this for relative symlinks.
|
||||||
|
while [ -h "$PRG" ] ; do
|
||||||
|
ls=`ls -ld "$PRG"`
|
||||||
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||||
|
if expr "$link" : '/.*' > /dev/null; then
|
||||||
|
PRG="$link"
|
||||||
|
else
|
||||||
|
PRG=`dirname "$PRG"`"/$link"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
SAVED="`pwd`"
|
||||||
|
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||||
|
APP_HOME="`pwd -P`"
|
||||||
|
cd "$SAVED" >/dev/null
|
||||||
|
|
||||||
|
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
# Determine the Java command to use to start the JVM.
|
||||||
|
if [ -n "$JAVA_HOME" ] ; then
|
||||||
|
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||||
|
# IBM's JDK on AIX uses strange locations for the executables
|
||||||
|
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||||
|
else
|
||||||
|
JAVACMD="$JAVA_HOME/bin/java"
|
||||||
|
fi
|
||||||
|
if [ ! -x "$JAVACMD" ] ; then
|
||||||
|
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
JAVACMD="java"
|
||||||
|
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
|
||||||
|
Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
location of your Java installation."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Increase the maximum file descriptors if we can.
|
||||||
|
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
|
||||||
|
MAX_FD_LIMIT=`ulimit -H -n`
|
||||||
|
if [ $? -eq 0 ] ; then
|
||||||
|
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||||
|
MAX_FD="$MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
ulimit -n $MAX_FD
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Darwin, add options to specify how the application appears in the dock
|
||||||
|
if $darwin; then
|
||||||
|
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
# For Cygwin, switch paths to Windows format before running java
|
||||||
|
if $cygwin ; then
|
||||||
|
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||||
|
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||||
|
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||||
|
|
||||||
|
# We build the pattern for arguments to be converted via cygpath
|
||||||
|
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||||
|
SEP=""
|
||||||
|
for dir in $ROOTDIRSRAW ; do
|
||||||
|
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||||
|
SEP="|"
|
||||||
|
done
|
||||||
|
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||||
|
# Add a user-defined pattern to the cygpath arguments
|
||||||
|
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||||
|
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||||
|
fi
|
||||||
|
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||||
|
i=0
|
||||||
|
for arg in "$@" ; do
|
||||||
|
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||||
|
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||||
|
|
||||||
|
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||||
|
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||||
|
else
|
||||||
|
eval `echo args$i`="\"$arg\""
|
||||||
|
fi
|
||||||
|
i=$((i+1))
|
||||||
|
done
|
||||||
|
case $i in
|
||||||
|
(0) set -- ;;
|
||||||
|
(1) set -- "$args0" ;;
|
||||||
|
(2) set -- "$args0" "$args1" ;;
|
||||||
|
(3) set -- "$args0" "$args1" "$args2" ;;
|
||||||
|
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||||
|
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||||
|
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||||
|
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||||
|
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||||
|
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
|
||||||
|
function splitJvmOpts() {
|
||||||
|
JVM_OPTS=("$@")
|
||||||
|
}
|
||||||
|
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
|
||||||
|
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
|
||||||
|
|
||||||
|
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
|
90
gradlew.bat
vendored
Normal file
90
gradlew.bat
vendored
Normal file
|
@ -0,0 +1,90 @@
|
||||||
|
@if "%DEBUG%" == "" @echo off
|
||||||
|
@rem ##########################################################################
|
||||||
|
@rem
|
||||||
|
@rem Gradle startup script for Windows
|
||||||
|
@rem
|
||||||
|
@rem ##########################################################################
|
||||||
|
|
||||||
|
@rem Set local scope for the variables with windows NT shell
|
||||||
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
set DEFAULT_JVM_OPTS=
|
||||||
|
|
||||||
|
set DIRNAME=%~dp0
|
||||||
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
|
set APP_BASE_NAME=%~n0
|
||||||
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
|
@rem Find java.exe
|
||||||
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
|
set JAVA_EXE=java.exe
|
||||||
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
|
if "%ERRORLEVEL%" == "0" goto init
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:findJavaFromJavaHome
|
||||||
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
|
if exist "%JAVA_EXE%" goto init
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
|
echo.
|
||||||
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
|
echo location of your Java installation.
|
||||||
|
|
||||||
|
goto fail
|
||||||
|
|
||||||
|
:init
|
||||||
|
@rem Get command-line arguments, handling Windowz variants
|
||||||
|
|
||||||
|
if not "%OS%" == "Windows_NT" goto win9xME_args
|
||||||
|
if "%@eval[2+2]" == "4" goto 4NT_args
|
||||||
|
|
||||||
|
:win9xME_args
|
||||||
|
@rem Slurp the command line arguments.
|
||||||
|
set CMD_LINE_ARGS=
|
||||||
|
set _SKIP=2
|
||||||
|
|
||||||
|
:win9xME_args_slurp
|
||||||
|
if "x%~1" == "x" goto execute
|
||||||
|
|
||||||
|
set CMD_LINE_ARGS=%*
|
||||||
|
goto execute
|
||||||
|
|
||||||
|
:4NT_args
|
||||||
|
@rem Get arguments from the 4NT Shell from JP Software
|
||||||
|
set CMD_LINE_ARGS=%$
|
||||||
|
|
||||||
|
:execute
|
||||||
|
@rem Setup the command line
|
||||||
|
|
||||||
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
@rem Execute Gradle
|
||||||
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
|
||||||
|
|
||||||
|
:end
|
||||||
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||||
|
|
||||||
|
:fail
|
||||||
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
|
rem the _cmd.exe /c_ return code!
|
||||||
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||||
|
exit /b 1
|
||||||
|
|
||||||
|
:mainEnd
|
||||||
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
|
:omega
|
1
library/.gitignore
vendored
Normal file
1
library/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/build
|
27
library/build.gradle
Normal file
27
library/build.gradle
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
apply plugin: 'com.android.library'
|
||||||
|
|
||||||
|
android {
|
||||||
|
compileSdkVersion 24
|
||||||
|
buildToolsVersion "24.0.2"
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
minSdkVersion 15
|
||||||
|
targetSdkVersion 24
|
||||||
|
versionCode 1
|
||||||
|
versionName "1.0"
|
||||||
|
|
||||||
|
}
|
||||||
|
buildTypes {
|
||||||
|
release {
|
||||||
|
minifyEnabled false
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'com.github.daniel-stoneuk:material-about-library:1.5.0'
|
||||||
|
compile('io.branch.sdk.android:library:2.5.7') {
|
||||||
|
exclude module: 'answers.shim'
|
||||||
|
}
|
||||||
|
}
|
10
library/findbugs_exclude.xml
Normal file
10
library/findbugs_exclude.xml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<FindBugsFilter>
|
||||||
|
|
||||||
|
<Match>
|
||||||
|
<Class name="~.*R\$.*" />
|
||||||
|
</Match>
|
||||||
|
<Match>
|
||||||
|
<Class name="~.*Manifest\$.*" />
|
||||||
|
</Match>
|
||||||
|
|
||||||
|
</FindBugsFilter>
|
17
library/proguard-rules.pro
vendored
Normal file
17
library/proguard-rules.pro
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# Add project specific ProGuard rules here.
|
||||||
|
# By default, the flags in this file are appended to flags specified
|
||||||
|
# in C:\Android\sdk/tools/proguard/proguard-android.txt
|
||||||
|
# You can edit the include path and order by changing the proguardFiles
|
||||||
|
# directive in build.gradle.
|
||||||
|
#
|
||||||
|
# For more details, see
|
||||||
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
|
# Add any project specific keep options here:
|
||||||
|
|
||||||
|
# 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 *;
|
||||||
|
#}
|
50
library/quality.gradle
Normal file
50
library/quality.gradle
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
apply plugin: 'findbugs'
|
||||||
|
apply plugin: 'pmd'
|
||||||
|
|
||||||
|
findbugs {
|
||||||
|
ignoreFailures = false
|
||||||
|
reportsDir = file("$project.buildDir/outputs/")
|
||||||
|
reportLevel = "medium"
|
||||||
|
effort = "max"
|
||||||
|
}
|
||||||
|
|
||||||
|
pmd {
|
||||||
|
ignoreFailures = false
|
||||||
|
reportsDir = file("$project.buildDir/outputs/")
|
||||||
|
}
|
||||||
|
|
||||||
|
task findbugs(type: FindBugs, dependsOn: "assembleDebug") {
|
||||||
|
description 'Run findbugs'
|
||||||
|
group 'verification'
|
||||||
|
|
||||||
|
classes = fileTree("$project.buildDir/intermediates/classes/debug")
|
||||||
|
source = fileTree('src/main/java')
|
||||||
|
classpath = files()
|
||||||
|
|
||||||
|
effort = 'max'
|
||||||
|
|
||||||
|
excludeFilter = file("$project.projectDir/findbugs_exclude.xml")
|
||||||
|
|
||||||
|
reports {
|
||||||
|
xml.enabled = false
|
||||||
|
html.enabled = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task pmd(type: Pmd, dependsOn: "assembleDebug") {
|
||||||
|
description 'Run pmd'
|
||||||
|
group 'verification'
|
||||||
|
|
||||||
|
ruleSets = ["java-basic", "java-braces", "java-strings", "java-design", "java-unusedcode"]
|
||||||
|
source = fileTree('src/main/java')
|
||||||
|
|
||||||
|
reports {
|
||||||
|
xml.enabled = false
|
||||||
|
html.enabled = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
check.doLast {
|
||||||
|
project.tasks.getByName("findbugs").execute()
|
||||||
|
project.tasks.getByName("pmd").execute()
|
||||||
|
}
|
11
library/src/main/AndroidManifest.xml
Normal file
11
library/src/main/AndroidManifest.xml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="com.eggheadgames.aboutbox">
|
||||||
|
|
||||||
|
<application android:label="@string/app_name">
|
||||||
|
<activity
|
||||||
|
android:name="com.eggheadgames.aboutbox.activity.AboutActivity"
|
||||||
|
android:theme="@style/AppTheme.MaterialAboutActivity" />
|
||||||
|
|
||||||
|
</application>
|
||||||
|
|
||||||
|
</manifest>
|
|
@ -0,0 +1,49 @@
|
||||||
|
package com.eggheadgames.aboutbox;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
|
public class AboutConfig {
|
||||||
|
|
||||||
|
public enum BuildType {AMAZON, GOOGLE}
|
||||||
|
|
||||||
|
private static AboutConfig aboutConfig;
|
||||||
|
|
||||||
|
public static AboutConfig getInstance() {
|
||||||
|
if (aboutConfig == null) {
|
||||||
|
aboutConfig = new AboutConfig();
|
||||||
|
}
|
||||||
|
return aboutConfig;
|
||||||
|
}
|
||||||
|
|
||||||
|
// general info
|
||||||
|
public String appName;
|
||||||
|
public int appIcon;
|
||||||
|
public String version;
|
||||||
|
public String aboutLabelTitle;
|
||||||
|
public String logUiEventName;
|
||||||
|
public String facebookUserName;
|
||||||
|
public String twitterUserName;
|
||||||
|
public String webHomePage;
|
||||||
|
public String appPublisher;
|
||||||
|
public String companyHtmlPath;
|
||||||
|
public String privacyHtmlPath;
|
||||||
|
public String acknowledgmentHtmlPath;
|
||||||
|
public BuildType buildType;
|
||||||
|
|
||||||
|
public Context context;
|
||||||
|
|
||||||
|
// custom analytics and dialog
|
||||||
|
public IAnalytic analytics;
|
||||||
|
public IDialog dialog;
|
||||||
|
|
||||||
|
// email
|
||||||
|
public String emailAddress;
|
||||||
|
public String emailSubject;
|
||||||
|
public String emailBody;
|
||||||
|
|
||||||
|
// share
|
||||||
|
public String shareMessageTitle;
|
||||||
|
public String shareMessage;
|
||||||
|
public String sharingTitle;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.eggheadgames.aboutbox;
|
||||||
|
|
||||||
|
public interface IAnalytic {
|
||||||
|
void logUiEvent(String action, String label);
|
||||||
|
|
||||||
|
void logException(Exception e, boolean fatal);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
package com.eggheadgames.aboutbox;
|
||||||
|
|
||||||
|
import android.support.v7.app.AppCompatActivity;
|
||||||
|
|
||||||
|
public interface IDialog {
|
||||||
|
void open(AppCompatActivity activity, String url, String tag);
|
||||||
|
}
|
|
@ -0,0 +1,270 @@
|
||||||
|
package com.eggheadgames.aboutbox.activity;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.ActivityNotFoundException;
|
||||||
|
import android.content.Context;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
|
import android.widget.Toast;
|
||||||
|
|
||||||
|
import com.danielstone.materialaboutlibrary.MaterialAboutActivity;
|
||||||
|
import com.danielstone.materialaboutlibrary.model.MaterialAboutActionItem;
|
||||||
|
import com.danielstone.materialaboutlibrary.model.MaterialAboutCard;
|
||||||
|
import com.danielstone.materialaboutlibrary.model.MaterialAboutList;
|
||||||
|
import com.danielstone.materialaboutlibrary.model.MaterialAboutTitleItem;
|
||||||
|
import com.eggheadgames.aboutbox.AboutConfig;
|
||||||
|
import com.eggheadgames.aboutbox.R;
|
||||||
|
import com.eggheadgames.aboutbox.share.EmailUtil;
|
||||||
|
import com.eggheadgames.aboutbox.share.ShareUtil;
|
||||||
|
|
||||||
|
public class AboutActivity extends MaterialAboutActivity {
|
||||||
|
|
||||||
|
public static void launch(Activity activity) {
|
||||||
|
Intent intent = new Intent(activity, AboutActivity.class);
|
||||||
|
activity.startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected MaterialAboutList getMaterialAboutList(Context context) {
|
||||||
|
|
||||||
|
final AboutConfig config = AboutConfig.getInstance();
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder generalInfoCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
|
||||||
|
generalInfoCardBuilder.addItem(new MaterialAboutTitleItem.Builder()
|
||||||
|
.text(config.appName)
|
||||||
|
.icon(config.appIcon)
|
||||||
|
.build());
|
||||||
|
|
||||||
|
generalInfoCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.version)
|
||||||
|
.subText(config.version)
|
||||||
|
.build());
|
||||||
|
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder supportCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
supportCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.contact_support)
|
||||||
|
.icon(R.drawable.ic_email_black)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
EmailUtil.contactUs(AboutActivity.this);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Contact");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder shareCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
shareCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.leave_review)
|
||||||
|
.icon(R.drawable.ic_review)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
openApp(config.context.getPackageName(), config.buildType == AboutConfig.BuildType.GOOGLE);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Review");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
shareCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.share)
|
||||||
|
.icon(R.drawable.ic_share_black)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
ShareUtil.share(AboutActivity.this);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Share");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder aboutCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
aboutCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.try_other_apps)
|
||||||
|
.icon(R.drawable.ic_try_other_apps)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
openPublisher(config.buildType == AboutConfig.BuildType.GOOGLE, config.appPublisher);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Try Other Apps");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
aboutCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(config.aboutLabelTitle)
|
||||||
|
.icon(R.drawable.ic_about_black)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
if (config.dialog == null) {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(config.companyHtmlPath)));
|
||||||
|
} else {
|
||||||
|
config.dialog.open(AboutActivity.this, config.companyHtmlPath, config.aboutLabelTitle);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, config.aboutLabelTitle);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder socialNetworksCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
socialNetworksCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.facebook_label)
|
||||||
|
.subText(config.facebookUserName)
|
||||||
|
.icon(R.drawable.ic_facebook_24)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
getOpenFacebookIntent(AboutActivity.this, config.facebookUserName);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Facebook");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
socialNetworksCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.twitter_label)
|
||||||
|
.subText(config.twitterUserName)
|
||||||
|
.icon(R.drawable.ic_twitter_24dp)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
startTwitter(AboutActivity.this, config.twitterUserName);
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Twitter");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
socialNetworksCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.web_label)
|
||||||
|
.subText(config.webHomePage.replace("https://", "").replace("http://", "").replace("/", ""))
|
||||||
|
.icon(R.drawable.ic_web_black_24dp)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(config.webHomePage)));
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Website");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
MaterialAboutCard.Builder privacyCardBuilder = new MaterialAboutCard.Builder();
|
||||||
|
privacyCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.privacy_policy)
|
||||||
|
.icon(R.drawable.ic_privacy)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
if (config.dialog == null) {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(config.privacyHtmlPath)));
|
||||||
|
} else {
|
||||||
|
config.dialog.open(AboutActivity.this, config.privacyHtmlPath, getString(R.string.privacy_policy));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Privacy");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
privacyCardBuilder.addItem(new MaterialAboutActionItem.Builder()
|
||||||
|
.text(R.string.acknowledgment)
|
||||||
|
.icon(R.drawable.ic_acknowledgment)
|
||||||
|
.setOnClickListener(new MaterialAboutActionItem.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick() {
|
||||||
|
if (config.dialog == null) {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(config.acknowledgmentHtmlPath)));
|
||||||
|
} else {
|
||||||
|
config.dialog.open(AboutActivity.this, config.acknowledgmentHtmlPath, getString(R.string.acknowledgment));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent(config.logUiEventName, "Acknowlegement");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.build());
|
||||||
|
|
||||||
|
|
||||||
|
return new MaterialAboutList.Builder()
|
||||||
|
.addCard(generalInfoCardBuilder.build())
|
||||||
|
.addCard(supportCardBuilder.build())
|
||||||
|
.addCard(shareCardBuilder.build())
|
||||||
|
.addCard(aboutCardBuilder.build())
|
||||||
|
.addCard(socialNetworksCardBuilder.build())
|
||||||
|
.addCard(privacyCardBuilder.build())
|
||||||
|
.build();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected CharSequence getActivityTitle() {
|
||||||
|
return getString(R.string.about_screen_title);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void getOpenFacebookIntent(Activity context, String name) {
|
||||||
|
Intent intent;
|
||||||
|
try {
|
||||||
|
context.getPackageManager().getPackageInfo("com.facebook.katana", 0);
|
||||||
|
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb://profile/" + name));
|
||||||
|
} catch (Exception e) {
|
||||||
|
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.facebook.com/" + name));
|
||||||
|
}
|
||||||
|
context.startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void startTwitter(Activity context, String name) {
|
||||||
|
Intent intent;
|
||||||
|
try {
|
||||||
|
context.getPackageManager().getPackageInfo("com.twitter.android", 0);
|
||||||
|
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("twitter://user?screen_name=" + name));
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
|
} catch (Exception e) {
|
||||||
|
intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://twitter.com/" + name));
|
||||||
|
}
|
||||||
|
context.startActivity(intent);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void openApp(String packageName, boolean googlePlay) {//true if Google Play, false if Amazon Store
|
||||||
|
try {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse((googlePlay ? "market://details?id=" : "amzn://apps/android?p=") + packageName)));
|
||||||
|
} catch (ActivityNotFoundException e1) {
|
||||||
|
try {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse((googlePlay ? "http://play.google.com/store/apps/details?id=" : "http://www.amazon.com/gp/mas/dl/android?p=") + packageName)));
|
||||||
|
} catch (ActivityNotFoundException e2) {
|
||||||
|
Toast.makeText(this, "You don't have any app that can open this link", Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void openPublisher(boolean googlePlay, String publisher) {//true if Google Play, false if Amazon Store
|
||||||
|
try {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse((googlePlay ? "market://search?q=pub:" : "amzn://apps/android?showAll=1&p=") + publisher)));
|
||||||
|
} catch (ActivityNotFoundException e1) {
|
||||||
|
try {
|
||||||
|
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse((googlePlay ? "http://play.google.com/store/search?q=pub:" : "http://www.amazon.com/gp/mas/dl/android?showAll=1&p=") + publisher)));
|
||||||
|
} catch (ActivityNotFoundException e2) {
|
||||||
|
Toast.makeText(this, "You don't have any app that can open this link", Toast.LENGTH_SHORT).show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
package com.eggheadgames.aboutbox.share;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.content.Intent;
|
||||||
|
import android.net.Uri;
|
||||||
|
|
||||||
|
import com.eggheadgames.aboutbox.AboutConfig;
|
||||||
|
import com.eggheadgames.aboutbox.BuildConfig;
|
||||||
|
|
||||||
|
public final class EmailUtil {
|
||||||
|
|
||||||
|
private EmailUtil() {
|
||||||
|
// Utility class
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void contactUs(Activity activity) {
|
||||||
|
AboutConfig config = AboutConfig.getInstance();
|
||||||
|
|
||||||
|
final Uri mailto = Uri.fromParts("mailto", config.emailAddress, null);
|
||||||
|
|
||||||
|
final String emailSubject;
|
||||||
|
|
||||||
|
if ("google".equals(BuildConfig.FLAVOR)) {
|
||||||
|
emailSubject = config.emailSubject + "G";
|
||||||
|
} else if ("amazon".equals(BuildConfig.FLAVOR)) {
|
||||||
|
emailSubject = config.emailSubject + "K";
|
||||||
|
} else {
|
||||||
|
emailSubject = config.emailSubject;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, mailto);
|
||||||
|
emailIntent.putExtra(Intent.EXTRA_SUBJECT, emailSubject);
|
||||||
|
emailIntent.putExtra(Intent.EXTRA_TEXT, config.emailBody);
|
||||||
|
activity.startActivity(Intent.createChooser(emailIntent, "Send email..."));
|
||||||
|
} catch (Exception e) {
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logException(e, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.eggheadgames.aboutbox.share;
|
||||||
|
|
||||||
|
import android.app.Activity;
|
||||||
|
import android.text.TextUtils;
|
||||||
|
|
||||||
|
import com.eggheadgames.aboutbox.AboutConfig;
|
||||||
|
|
||||||
|
import io.branch.indexing.BranchUniversalObject;
|
||||||
|
import io.branch.referral.Branch;
|
||||||
|
import io.branch.referral.BranchError;
|
||||||
|
import io.branch.referral.SharingHelper;
|
||||||
|
import io.branch.referral.util.LinkProperties;
|
||||||
|
import io.branch.referral.util.ShareSheetStyle;
|
||||||
|
|
||||||
|
public final class ShareUtil {
|
||||||
|
|
||||||
|
private ShareUtil() {
|
||||||
|
// Utility class
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void share(Activity activity) {
|
||||||
|
BranchUniversalObject branchUniversalObject = new BranchUniversalObject();
|
||||||
|
final AboutConfig config = AboutConfig.getInstance();
|
||||||
|
|
||||||
|
ShareSheetStyle shareSheetStyle = new ShareSheetStyle(activity, config.shareMessageTitle,
|
||||||
|
config.shareMessage)
|
||||||
|
.setCopyUrlStyle(activity.getResources().getDrawable(android.R.drawable.ic_menu_send),
|
||||||
|
"Copy", "Added to clipboard")
|
||||||
|
.setMoreOptionStyle(activity.getResources().getDrawable(android.R.drawable.ic_menu_search), "Show more")
|
||||||
|
.addPreferredSharingOption(SharingHelper.SHARE_WITH.FACEBOOK)
|
||||||
|
.addPreferredSharingOption(SharingHelper.SHARE_WITH.EMAIL)
|
||||||
|
.setSharingTitle(config.sharingTitle);
|
||||||
|
|
||||||
|
branchUniversalObject.showShareSheet(activity,
|
||||||
|
new LinkProperties(), shareSheetStyle, new Branch.BranchLinkShareListener() {
|
||||||
|
@Override
|
||||||
|
public void onShareLinkDialogLaunched() {
|
||||||
|
//nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onShareLinkDialogDismissed() {
|
||||||
|
if (config.analytics != null) {
|
||||||
|
config.analytics.logUiEvent("Share", "Dismissed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onLinkShareResponse(String sharedLink, String sharedChannel, BranchError error) {
|
||||||
|
if (config.analytics != null) {
|
||||||
|
if (error == null || TextUtils.isEmpty(error.getMessage())) {
|
||||||
|
config.analytics.logUiEvent("Share", sharedChannel);
|
||||||
|
} else {
|
||||||
|
config.analytics.logUiEvent("Share Failure", error.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onChannelSelected(String channelName) {
|
||||||
|
//nothing
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
9
library/src/main/res/drawable/ic_about_black.xml
Normal file
9
library/src/main/res/drawable/ic_about_black.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#7B7B7B"
|
||||||
|
android:pathData="M19,2L5,2c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h4l3,3 3,-3h4c1.1,0 2,-0.9 2,-2L21,4c0,-1.1 -0.9,-2 -2,-2zM13,18h-2v-2h2v2zM15.07,10.25l-0.9,0.92C13.45,11.9 13,12.5 13,14h-2v-0.5c0,-1.1 0.45,-2.1 1.17,-2.83l1.24,-1.26c0.37,-0.36 0.59,-0.86 0.59,-1.41 0,-1.1 -0.9,-2 -2,-2s-2,0.9 -2,2L8,8c0,-2.21 1.79,-4 4,-4s4,1.79 4,4c0,0.88 -0.36,1.68 -0.93,2.25z"/>
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_acknowledgment.xml
Normal file
9
library/src/main/res/drawable/ic_acknowledgment.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF004DB4"
|
||||||
|
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12 5.16,-1.26 9,-6.45 9,-12L21,5l-9,-4zM10,17l-4,-4 1.41,-1.41L10,14.17l6.59,-6.59L18,9l-8,8z"/>
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_email_black.xml
Normal file
9
library/src/main/res/drawable/ic_email_black.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#3B3B3B"
|
||||||
|
android:pathData="M20,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2zm0,4l-8,5 -8,-5V6l8,5 8,-5v2z"/>
|
||||||
|
</vector>
|
12
library/src/main/res/drawable/ic_facebook_24.xml
Normal file
12
library/src/main/res/drawable/ic_facebook_24.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="216"
|
||||||
|
android:viewportHeight="216">
|
||||||
|
|
||||||
|
<path
|
||||||
|
android:fillColor="#3C5A99"
|
||||||
|
android:pathData="M204.1,0H11.9C5.3,0,0,5.3,0,11.9v192.2c0,6.6,5.3,11.9,11.9,11.9h103.5v-83.6H87.2V99.8h28.1
|
||||||
|
v-24c0-27.9,17-43.1,41.9-43.1c11.9,0,22.2,0.9,25.2,1.3v29.2l-17.3,0c-13.5,0-16.2,6.4-16.2,15.9v20.8h32.3l-4.2,32.6H149V216h55
|
||||||
|
c6.6,0,11.9-5.3,11.9-11.9V11.9C216,5.3,210.7,0,204.1,0z" />
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_privacy.xml
Normal file
9
library/src/main/res/drawable/ic_privacy.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M12,17c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM8.9,6c0,-1.71 1.39,-3.1 3.1,-3.1s3.1,1.39 3.1,3.1v2L8.9,8L8.9,6zM18,20L6,20L6,10h12v10z"/>
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_review.xml
Normal file
9
library/src/main/res/drawable/ic_review.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FFFFBD00"
|
||||||
|
android:pathData="M12,17.27L18.18,21l-1.64,-7.03L22,9.24l-7.19,-0.61L12,2 9.19,8.63 2,9.24l5.46,4.73L5.82,21z"/>
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_share_black.xml
Normal file
9
library/src/main/res/drawable/ic_share_black.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#979797"
|
||||||
|
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/>
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_try_other_apps.xml
Normal file
9
library/src/main/res/drawable/ic_try_other_apps.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF0079FD"
|
||||||
|
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8zM15.5,11c0.83,0 1.5,-0.67 1.5,-1.5S16.33,8 15.5,8 14,8.67 14,9.5s0.67,1.5 1.5,1.5zM8.5,11c0.83,0 1.5,-0.67 1.5,-1.5S9.33,8 8.5,8 7,8.67 7,9.5 7.67,11 8.5,11zM12,17.5c2.33,0 4.31,-1.46 5.11,-3.5L6.89,14c0.8,2.04 2.78,3.5 5.11,3.5z"/>
|
||||||
|
</vector>
|
16
library/src/main/res/drawable/ic_twitter_24dp.xml
Normal file
16
library/src/main/res/drawable/ic_twitter_24dp.xml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
|
||||||
|
<path
|
||||||
|
android:fillColor="#1DA1F2"
|
||||||
|
android:pathData="M12,0C5.4,0,0,5.4,0,12s5.4,12,12,12s12-5.4,12-12S18.6,0,12,0z
|
||||||
|
M12,23C5.9,23,1,18.1,1,12S5.9,1,12,1 s11,4.9,11,11S18.1,23,12,23z
|
||||||
|
M18.5,10c0,0.1,0,0.3,0,0.4c0,4.1-3.1,8.8-8.8,8.8c-1.7,0-3.4-0.5-4.7-1.4c0.2,0,0.5,0,0.7,0
|
||||||
|
c1.4,0,2.8-0.5,3.8-1.3c-1.3,0-2.5-0.9-2.9-2.1c0.2,0,0.4,0.1,0.6,0.1c0.3,0,0.6,0,0.8-0.1c-1.4-0.3-2.5-1.5-2.5-3l0,0
|
||||||
|
c0.5,0.1,1,0.3,1.5,0.3c-0.8-0.6-1.4-1.5-1.4-2.6C5.6,8.5,5.8,8,6,7.6c1.5,1.9,3.8,3.1,6.3,3.2c-0.1-0.2-0.1-0.5-0.1-0.7
|
||||||
|
c0-1.7,1.4-3.1,3.1-3.1c0.9,0,1.7,0.4,2.2,1c0.7-0.1,1.4-0.4,2-0.7C19.3,8,18.8,8.6,18.1,9c0.6-0.1,1.2-0.2,1.8-0.5
|
||||||
|
C19.6,9.1,19.1,9.6,18.5,10z" />
|
||||||
|
</vector>
|
9
library/src/main/res/drawable/ic_web_black_24dp.xml
Normal file
9
library/src/main/res/drawable/ic_web_black_24dp.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF308BEA"
|
||||||
|
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM11,19.93c-3.95,-0.49 -7,-3.85 -7,-7.93 0,-0.62 0.08,-1.21 0.21,-1.79L9,15v1c0,1.1 0.9,2 2,2v1.93zM17.9,17.39c-0.26,-0.81 -1,-1.39 -1.9,-1.39h-1v-3c0,-0.55 -0.45,-1 -1,-1L8,12v-2h2c0.55,0 1,-0.45 1,-1L11,7h2c1.1,0 2,-0.9 2,-2v-0.41c2.93,1.19 5,4.06 5,7.41 0,2.08 -0.8,3.97 -2.1,5.39z"/>
|
||||||
|
</vector>
|
6
library/src/main/res/values/colors.xml
Normal file
6
library/src/main/res/values/colors.xml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<color name="colorAccent">#FF4081</color>
|
||||||
|
<color name="colorPrimary">#3F51B5</color>
|
||||||
|
<color name="colorPrimaryDark">#303F9F</color>
|
||||||
|
</resources>
|
15
library/src/main/res/values/strings.xml
Normal file
15
library/src/main/res/values/strings.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<resources>
|
||||||
|
<string name="app_name">AboutBox</string>
|
||||||
|
<string name="leave_review">Leave Review</string>
|
||||||
|
<string name="contact_support">Contact Support</string>
|
||||||
|
<string name="try_other_apps">Try Other Apps</string>
|
||||||
|
<string name="version">Version</string>
|
||||||
|
<string name="facebook_label">Facebook</string>
|
||||||
|
<string name="twitter_label">Twitter</string>
|
||||||
|
<string name="web_label">Web</string>
|
||||||
|
<string name="acknowledgment">Acknowledgment</string>
|
||||||
|
<string name="privacy_policy">Privacy Policy</string>
|
||||||
|
<string name="about_screen_title">About</string>
|
||||||
|
<string name="share">Share</string>
|
||||||
|
|
||||||
|
</resources>
|
9
library/src/main/res/values/styles.xml
Normal file
9
library/src/main/res/values/styles.xml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="AppTheme.MaterialAboutActivity" parent="Theme.Mal" >
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
1
settings.gradle
Normal file
1
settings.gradle
Normal file
|
@ -0,0 +1 @@
|
||||||
|
include ':library'
|
Loading…
Add table
Add a link
Reference in a new issue