| with library | without libary |
|---|---|
| path.moveTo(pointF) | path.moveTo(pointF.x, pointF.y) |
| path.moveTo(point) | path.moveTo(point.x.toFloat(), point.y.toFloat()) |
| path.moveTo(xIntValue, yIntValue) | path.moveTo(xIntValue.toFloat(), yIntValue.toFloat() |
| path.lineTo(pointF) | path.lineTo(pointF.x, pointF.y) |
| path.lineTo(point) | path.lineTo(point.x.toFloat(), point.y.toFloat()) |
| path.lineTo(xIntValue, yIntValue) | path.lineTo(xIntValue.toFloat(), yIntValue.toFloat() |
| path.setLastPoint(pointF) | path.setLastPoint(pointF.x, pointF.y) |
| path.setLastPoint(point) | path.setLastPoint(point.x.toFloat(), point.y.toFloat()) |
This file contains hidden or 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
| interface SomeViewInterface : MvpView { | |
| ... | |
| @StateStrategyType(OneExecutionStateStrategy::class) | |
| fun showSomeFragment(someArgumentIfYouNeed : Int) | |
| } |
This file contains hidden or 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
| interface SomeViewInterface : MvpView { | |
| ... | |
| @StateStrategyType(SkipStrategy::class) | |
| fun startSomeAnimation() | |
| } |
This file contains hidden or 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
| interface SomeViewInterface : MvpView { | |
| ... | |
| @StateStrategyType(AddToEndStrategy::class) | |
| fun startSomeAnimation() | |
| } |
This file contains hidden or 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
| public class MainView$$State extends MvpViewState implements MainView { | |
| @Override | |
| public void printLog(String message) { | |
| PrintLogCommand printLogCommand = new PrintLogCommand(message); | |
| viewCommands.beforeApply(printLogCommand); | |
| if (hasNotView()) { | |
| return; | |
| } |
This file contains hidden or 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
| file="releaseNote.txt" | |
| if [ -f “$file” ] | |
| then | |
| echo "$file found." | |
| message="We uploaded the new build" | |
| for key in $(cat releaseNote.txt) | |
| do | |
| message=$"${message} n ${JIRA_URL}browse/$key" | |
| done | |
| curl -X POST -H 'Content-type: application/json' — data "{"text ":"$message"}" ${SLACK_HOOK} |
This file contains hidden or 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
| curl -X POST -H "Content-type: application/json" — data "{"text":"Developers make something good:) please check Jira"}" ${SLACK_HOOK} |
This file contains hidden or 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
| if [ -f "$file" ] | |
| then | |
| for key in $(cat releaseNote.txt) | |
| do | |
| curl -D- -u $JIRA_USERNAME:$JIRA_PASSWORD -X PUT --data "{"update":{"fixVersions":[{"set":[{"name":"${BUILD_NUMBER}"}]}]}}" -H "Content-Type:application/json" ${JIRA_URL}rest/api/2/issue/${key} | |
| else | |
| echo "$file not found." | |
| fi |
This file contains hidden or 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
| curl -D- -u $JIRA_USERNAME:$JIRA_PASSWORD -X POST --data "{"description": "***", "name": "${BUILD_NUMBER}", "archived": false, "released": false, "project": "${PROJECT_KEY}"}" -H "Content-Type:application/json" ${JIRA_URL}rest/api/2/version |
This file contains hidden or 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
| KEYS=$(git shortlog -n ${GIT_PREVIOUS_SUCCESSFUL_COMMIT}..HEAD — oneline | cut -d ']' -f1 | cut -d '[' -f2 | grep "^IM") | |
| echo ${KEYS} >> releaseNote.txt |