Skip to content

Commit

Permalink
refactor: Reorganize domain layer of flank scripts (#1584)
Browse files Browse the repository at this point in the history
Fixes #1544

## Test Plan
> How do we know the code works?

Package structure looks like designed [here](https://github.com/Flank/flank/blob/master/docs/flank-scripts/ops_structure.md)

## Checklist

- [x] [Documented](https://github.com/Flank/flank/blob/master/docs/flank-scripts/ops_structure.md)
  • Loading branch information
piotradamczyk5 authored Feb 11, 2021
1 parent fa7a606 commit 2d3e2bb
Show file tree
Hide file tree
Showing 96 changed files with 178 additions and 494 deletions.
119 changes: 64 additions & 55 deletions docs/flank-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,96 +202,106 @@ Properties are skipped by git and should not be attached to a commit. Note, the
│ └── objects
│ └── ConvertToEpicRequest.kt
├── ops
│ ├── assemble
│ │ ├── BuildFlank.kt
│ │ ├── BuildGo.kt
│ │ ├── GradleCommand.kt
│ │ ├── android
│ │ │ ├── BuildBaseAndroidApk.kt
│ │ │ ├── BuildBaseAndroidTests.kt
│ │ │ ├── BuildCucumberSampleApk.kt
│ │ │ ├── BuildDuplicatedNamesApks.kt
│ │ │ ├── BuildMultiModulesApks.kt
│ │ │ ├── Common.kt
│ │ │ └── RunAndroidOps.kt
│ │ └── ios
│ │ ├── BuildEarlGreyExample.kt
│ │ ├── BuildExample.kt
│ │ ├── BuildFlankExampleCommand.kt
│ │ ├── BuildFtl.kt
│ │ ├── BuildGameLoopExampleCommand.kt
│ │ ├── BuildIosIPA.kt
│ │ ├── BuildIosTestArtifacts.kt
│ │ ├── BuildTestPlansExample.kt
│ │ ├── IosBuildCommand.kt
│ │ ├── LipoHelper.kt
│ │ ├── RunFtlLocal.kt
│ │ └── UniversalFramework.kt
│ ├── ci
│ │ ├── CreateReleaseNotes.kt
│ │ ├── NextReleaseTag.kt
│ │ └── releasenotes
│ │ ├── AppendReleaseNotes.kt
│ │ ├── ConventionalCommitFormatter.kt
│ │ ├── GenerateChangeLog.kt
│ │ └── ReleaseNotesWithType.kt
│ ├── common
│ │ ├── ConventionalCommitFormatter.kt
│ │ ├── EarlGreyExampleConsts.kt
│ │ ├── GenerateChangeLog.kt
│ │ └── ReleaseNotesWithType.kt
│ ├── contribution
│ │ ├── ApplyKtlintToIdea.kt
│ │ └── LinkGitHooks.kt
│ ├── dependencies
│ │ ├── DependenciesResultCheck.kt
│ │ ├── DependencyExtensions.kt
│ │ ├── DependencyUpdate.kt
│ │ ├── DownloadSoftware.kt
│ │ ├── FindOutdatedDependencies.kt
│ │ ├── FindVersionInLines.kt
│ │ ├── GradleDependency.kt
│ │ ├── InstallXcPretty.kt
│ │ ├── SetupIosEnv.kt
│ │ ├── UpdateAllDependencies.kt
│ │ ├── UpdateDependencies.kt
│ │ ├── UpdateGradle.kt
│ │ ├── UpdatePlugins.kt
│ │ └── UpdateVersionsInFile.kt
│ │ ├── UpdateVersionsInFile.kt
│ │ └── updatebinaries
│ │ ├── UpdateAtomic.kt
│ │ ├── UpdateBinaries.kt
│ │ ├── UpdateLlvm.kt
│ │ └── UpdateSwift.kt
│ ├── firebase
│ │ ├── CheckForSDKUpdateCommand.kt
│ │ ├── CommitList.kt
│ │ ├── Extensions.kt
│ │ ├── GenerateJavaClient.kt
│ │ ├── LastSDKUpdateRun.kt
│ │ ├── OpenedUpdates.kt
│ │ ├── SDKUpdateContext.kt
│ │ └── UpdateApiJson.kt
│ ├── github
│ │ ├── CopyGitHubProperties.kt
│ │ ├── DeleteOldRelease.kt
│ │ ├── DeleteOldTag.kt
│ │ ├── FindReferenceIssue.kt
│ │ ├── ReleaseFlank.kt
│ │ ├── SetAssignees.kt
│ │ └── SetLabels.kt
│ ├── integration
│ ├── integrationtests
│ │ ├── CommitList.kt
│ │ ├── Extensions.kt
│ │ ├── IntegrationContext.kt
│ │ ├── IssueList.kt
│ │ ├── PrepareMessage.kt
│ │ ├── ProcessIntegrationTestsResult.kt
│ │ └── WorkflowSummary.kt
│ ├── linter
│ │ ├── ApplyKtlintToIdea.kt
│ │ └── LinkGitHooks.kt
│ ├── pullrequest
│ │ ├── CopyGitHubProperties.kt
│ │ ├── FindReferenceIssue.kt
│ │ ├── SetAssignees.kt
│ │ └── SetLabels.kt
│ ├── release
│ │ ├── AppendReleaseNotes.kt
│ │ ├── CreateReleaseNotes.kt
│ │ ├── NextReleaseTag.kt
│ │ ├── hub
│ │ │ ├── DeleteOldRelease.kt
│ │ │ ├── DeleteOldTag.kt
│ │ │ └── ReleaseFlank.kt
│ │ └── jfrog
│ │ ├── DeleteOldSnapshot.kt
│ │ ├── JFrogCommandHelper.kt
│ │ └── SyncMaven.kt
│ ├── shell
│ │ ├── BuildFlank.kt
│ │ ├── InstallXcPretty.kt
│ │ ├── SetupIosEnv.kt
│ │ ├── buildexample
│ │ │ ├── android
│ │ │ │ ├── BuildBaseAndroidApk.kt
│ │ │ │ ├── BuildBaseAndroidTests.kt
│ │ │ │ ├── BuildCucumberSampleApk.kt
│ │ │ │ ├── BuildDuplicatedNamesApks.kt
│ │ │ │ ├── BuildMultiModulesApks.kt
│ │ │ │ ├── Common.kt
│ │ │ │ └── RunAndroidOps.kt
│ │ │ ├── go
│ │ │ │ └── BuildGO.kt
│ │ │ └── ios
│ │ │ ├── BuildEarlGreyExample.kt
│ │ │ ├── BuildExample.kt
│ │ │ ├── BuildFlankExampleCommand.kt
│ │ │ ├── BuildFtl.kt
│ │ │ ├── BuildGameLoopExampleCommand.kt
│ │ │ ├── BuildIosIPA.kt
│ │ │ ├── BuildIosTestArtifacts.kt
│ │ │ ├── BuildTestPlansExample.kt
│ │ │ ├── EarlGreyExampleConsts.kt
│ │ │ ├── IosBuildCommand.kt
│ │ │ ├── LipoHelper.kt
│ │ │ ├── RunFtlLocal.kt
│ │ │ └── UniversalFramework.kt
│ │ ├── firebase
│ │ │ ├── apiclient
│ │ │ │ ├── GenerateJavaClient.kt
│ │ │ │ └── UpdateApiJson.kt
│ │ │ └── sdk
│ │ │ ├── CheckForSDKUpdateCommand.kt
│ │ │ ├── CommitList.kt
│ │ │ ├── Extensions.kt
│ │ │ ├── LastSDKUpdateRun.kt
│ │ │ ├── OpenedUpdates.kt
│ │ │ └── SDKUpdateContext.kt
│ │ └── updatebinaries
│ │ ├── UpdateAtomic.kt
│ │ ├── UpdateBinaries.kt
│ │ ├── UpdateLlvm.kt
│ │ └── UpdateSwift.kt
│ └── testartifacts
│ ├── ArtifactsArchive.kt
│ ├── Constants.kt
Expand All @@ -306,11 +316,9 @@ Properties are skipped by git and should not be attached to a commit. Note, the
│ ├── UploadFixtures.kt
│ └── ZipArtifacts.kt
└── utils
├── DownloadSoftware.kt
├── Env.kt
├── FastFailForWindows.kt
├── Git.kt
├── GradleCommand.kt
├── MarkdownFormatter.kt
├── Path.kt
├── Serialization.kt
Expand All @@ -320,4 +328,5 @@ Properties are skipped by git and should not be attached to a commit. Note, the
├── FlankScriptsExceptionMappers.kt
└── FlankScriptsExceptions.kt


```
2 changes: 1 addition & 1 deletion docs/flank-scripts/ops_structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ called `common`.
For better code organization `updatebinaries` has a separate package inside `dependencies`, as well as `jfrog` in
`release` package.

Ops package structure and file organization is presented on tree below:
Ops package structure and file organization are presented on the tree below:

```bash
├── ops
Expand Down
Loading

0 comments on commit 2d3e2bb

Please sign in to comment.