-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
423 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Contibuting | ||
|
||
If you would like to contribute code to [**SuperImageView**](github.com/cesards/SuperImageView) you can do so through GitHub by forking the repository and sending a pull request. | ||
|
||
When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles by running ./gradlew clean build. Checkstyle failures during compilation indicate errors in your style and can be viewed in files located at */build/report/checkstyle directories. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Issue Template | ||
|
||
Welcome and thank you for reporting an issue and with doing so, improving the library! | ||
|
||
**Important**: Please, before submitting a new issue, verify that your issue hasn't already been reported by | ||
[**searching over all issues**](https://github.com/cesards/SuperImageView/issues). | ||
|
||
|
||
What kind of issue is this? | ||
|
||
- **Help wanted**: If you have questions about how the library works, please, use the `help wanted` [**label**](https://github.com/cesards/SuperImageView/labels) before submitting. | ||
|
||
- **Bug**: If you found a bug, try to spend some time writing a report and a failing test. Bugs with tests get fixed much more easily. [**Here is a good example**](https://gist.github.com/swankjesse/981fcae102f513eb13ed). | ||
|
||
- **Enhancement**: Try to explain what's the problem you are willing to solve. Don't send pull requests with new features' implementations without asking first. | ||
|
||
|
||
^^^^^ DELETE FROM THIS LINE UP ^^^^^ | ||
|
||
``` | ||
REPLACE THIS LINE WITH YOUR STACKTRACE OR OUTPUT FROM LEAKCANARY | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018 César Díez Sánchez - Code For Victory | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> | ||
|
||
<!-- FROM SQUARE: Need to change--> | ||
|
||
|
||
<module name="Checker"> | ||
<!--module name="NewlineAtEndOfFile"/--> | ||
<module name="FileLength" /> | ||
<module name="FileTabCharacter" /> | ||
|
||
<!-- Trailing spaces --> | ||
<module name="RegexpSingleline"> | ||
<property name="format" value="\s+$" /> | ||
<property name="message" value="Line has trailing spaces." /> | ||
</module> | ||
|
||
<!-- Space after 'for' and 'if' --> | ||
<module name="RegexpSingleline"> | ||
<property name="format" value="^\s*(for|if)[^ ]" /> | ||
<property name="message" value="Space needed before opening parenthesis." /> | ||
</module> | ||
|
||
<!-- For each spacing --> | ||
<module name="RegexpSingleline"> | ||
<property name="format" value="^\s*for \(.*?([^ ]:|:[^ ])" /> | ||
<property name="message" value="Space needed around ':' character." /> | ||
</module> | ||
|
||
<module name="TreeWalker"> | ||
<!-- Checks for Javadoc comments. --> | ||
<!-- See http://checkstyle.sf.net/config_javadoc.html --> | ||
<!--module name="JavadocMethod"/--> | ||
<!--module name="JavadocType"/--> | ||
<!--module name="JavadocVariable"/--> | ||
<!--module name="JavadocStyle"/--> | ||
|
||
|
||
<!-- Checks for Naming Conventions. --> | ||
<!-- See http://checkstyle.sf.net/config_naming.html --> | ||
<!--<module name="ConstantName"/>--> | ||
<module name="LocalFinalVariableName" /> | ||
<module name="LocalVariableName" /> | ||
<module name="MemberName" /> | ||
<module name="MethodName"> | ||
<property name="format" value="^[a-z][a-zA-Z0-9_]*$" /> | ||
</module> | ||
<module name="PackageName" /> | ||
<module name="ParameterName" /> | ||
<module name="StaticVariableName" /> | ||
<module name="TypeName"> | ||
<property name="format" value="^[A-Z][a-zA-Z0-9_]*$" /> | ||
</module> | ||
|
||
|
||
<!-- Checks for imports --> | ||
<!-- See http://checkstyle.sf.net/config_import.html --> | ||
<module name="AvoidStarImport" /> | ||
<module name="IllegalImport" /> | ||
<module name="RedundantImport" /> | ||
<module name="UnusedImports"> | ||
<property name="processJavadoc" value="true" /> | ||
</module> | ||
|
||
|
||
<!-- Checks for Size Violations. --> | ||
<!-- See http://checkstyle.sf.net/config_sizes.html --> | ||
<!--module name="LineLength"--> | ||
<!--property name="max" value="100"/--> | ||
<!--/module--> | ||
<!--module name="MethodLength"/--> | ||
<!--<module name="ParameterNumber"/>--> | ||
|
||
|
||
<!-- Checks for whitespace --> | ||
<!-- See http://checkstyle.sf.net/config_whitespace.html --> | ||
<module name="GenericWhitespace" /> | ||
<module name="EmptyForIteratorPad" /> | ||
<module name="MethodParamPad" /> | ||
<!--<module name="NoWhitespaceAfter"/>--> | ||
<!--<module name="NoWhitespaceBefore"/>--> | ||
<module name="OperatorWrap" /> | ||
<module name="ParenPad" /> | ||
<module name="TypecastParenPad" /> | ||
<module name="WhitespaceAfter" /> | ||
<module name="WhitespaceAround" /> | ||
|
||
|
||
<!-- Modifier Checks --> | ||
<!-- See http://checkstyle.sf.net/config_modifiers.html --> | ||
<!--module name="ModifierOrder"/--> | ||
<module name="RedundantModifier" /> | ||
|
||
|
||
<!-- Checks for blocks. You know, those {}'s --> | ||
<!-- See http://checkstyle.sf.net/config_blocks.html --> | ||
<!--module name="AvoidNestedBlocks"/--> | ||
<!--module name="EmptyBlock"/--> | ||
<module name="LeftCurly" /> | ||
<module name="NeedBraces" /> | ||
<module name="RightCurly" /> | ||
|
||
|
||
<!-- Checks for common coding problems --> | ||
<!-- See http://checkstyle.sf.net/config_coding.html --> | ||
<!--module name="AvoidInlineConditionals"/--> | ||
<module name="CovariantEquals" /> | ||
<module name="EmptyStatement" /> | ||
<!--module name="EqualsAvoidNull"/--> | ||
<module name="EqualsHashCode" /> | ||
<!--module name="HiddenField"/--> | ||
<module name="IllegalInstantiation" /> | ||
<!--<module name="InnerAssignment"/>--> | ||
<!--module name="MagicNumber"/--> | ||
<module name="MissingSwitchDefault" /> | ||
<!--module name="RedundantThrows"/--> | ||
<module name="SimplifyBooleanExpression" /> | ||
<module name="SimplifyBooleanReturn" /> | ||
|
||
<!-- Checks for class design --> | ||
<!-- See http://checkstyle.sf.net/config_design.html --> | ||
<!--module name="DesignForExtension"/--> | ||
<!--module name="FinalClass"/--> | ||
<module name="HideUtilityClassConstructor" /> | ||
<!--module name="InterfaceIsType"/--> | ||
<!--module name="VisibilityModifier"/--> | ||
|
||
|
||
<!-- Miscellaneous other checks. --> | ||
<!-- See http://checkstyle.sf.net/config_misc.html --> | ||
<module name="ArrayTypeStyle" /> | ||
<!--module name="FinalParameters"/--> | ||
<!--module name="TodoComment"/--> | ||
<module name="UpperEll" /> | ||
</module> | ||
</module> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
# 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 | ||
|
||
org.gradle.daemon=true | ||
org.gradle.parallel=true | ||
|
||
|
||
|
||
|
||
USER_ORG= | ||
REPO_URL=http://github.com/cesards/SuperImageView | ||
|
||
|
||
|
||
GROUP=com.codeforvictory.android.superimageview | ||
VERSION_NAME=2.0 | ||
POM_DESCRIPTION=Features added on top of am ImageView | ||
POM_URL= | ||
POM_SCM_URL=http://github.com/cesards/SuperImageView/ | ||
POM_LICENCE_NAME=The Apache Software License, Version 2.0 | ||
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt | ||
POM_LICENCE_DIST=repo | ||
|
||
|
||
|
||
|
||
POM_SCM_CONNECTION=scm:git:https://github.com/square/leakcanary.git | ||
POM_SCM_DEV_CONNECTION=scm:git:[email protected]:square/leakcanary.git | ||
POM_DEVELOPER_ID=square | ||
POM_DEVELOPER_NAME=Square, Inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apply plugin: 'checkstyle' | ||
|
||
checkstyle { | ||
configFile rootProject.file('configuration/checkstyle.xml') | ||
ignoreFailures false | ||
showViolations true | ||
} | ||
|
||
task checkstyle(type: Checkstyle) { | ||
configFile rootProject.file('configuration/checkstyle.xml') | ||
source 'src/main/java' | ||
ignoreFailures false | ||
showViolations true | ||
include '**/*.java' | ||
|
||
classpath = files() | ||
} | ||
|
||
afterEvaluate { | ||
if (project.tasks.getByName("check")) { | ||
check.dependsOn('checkstyle') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
apply plugin: 'maven-publish' | ||
|
||
repositories { | ||
maven { | ||
url "http://internal.repo" | ||
} | ||
} | ||
|
||
group 'com.group.binaries' | ||
version = externalVersion | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
repositories { | ||
maven { | ||
group 'com.group.binaries' | ||
version = externalVersion | ||
credentials { | ||
username "admin" | ||
password "password" | ||
} | ||
|
||
if(project.version.endsWith('-SNAPSHOT')) { | ||
// url 'https://oss.sonatype.org/content/repositories/snapshots/' | ||
url "http://example/artifactory/libs-snapshot-local" | ||
} else { | ||
url "http://example/artifactory/libs-release-local" | ||
//"http://internal.repo/libs-snapshot-local" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.