-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from hmrc/feature/HMA-1258-deploy-new-tax-calc
Feature/hma 1258 deploy new tax calc
- Loading branch information
Showing
6 changed files
with
106 additions
and
10 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 |
---|---|---|
|
@@ -35,4 +35,5 @@ gen | |
build | ||
.gradle | ||
/credentials.properties | ||
local.properties | ||
local.properties | ||
.DS_Store |
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,30 @@ | ||
#!/usr/bin/env bash | ||
if [ -z "$2" ]; then | ||
echo "ERROR: Please provide a Github token" | ||
else | ||
export export GITHUB_TOKEN=$2 | ||
if [ -z "$1" ]; then | ||
echo "ERROR: Please provide a git tag" | ||
else | ||
if echo "$1" | grep -Eq "^\d{0,3}\.\d{1}\.\d{1}$"; then | ||
DIRECTORY="Carthage" | ||
ZIP="TaxKalculator.framework.zip" | ||
if [ -d "$DIRECTORY" ]; then | ||
rm -rf $DIRECTORY | ||
fi | ||
if [ -f "$ZIP" ]; then | ||
rm $ZIP | ||
fi | ||
echo "INFO: Creating Carthage folder structure" | ||
mkdir $DIRECTORY && mkdir $DIRECTORY/Build && mkdir $DIRECTORY/Build/iOS | ||
echo "INFO: Copying artifact" | ||
cp -r build/xcode-frameworks/TaxKalculator* $DIRECTORY/Build/iOS | ||
echo "INFO: Zipping" | ||
zip -r TaxKalculator.framework.zip $DIRECTORY | ||
echo "INFO: Adding zipped artifact to release" | ||
ghr "$1" $ZIP | ||
else | ||
echo "ERROR: Please use a valid git tag format e.g 1.0.3" | ||
fi | ||
fi | ||
fi |
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
24 changes: 24 additions & 0 deletions
24
src/commonMain/kotlin/uk/gov/hmrc/calculator/annotations/Throws.kt
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 @@ | ||
/* | ||
* Copyright 2019 HM Revenue & Customs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package uk.gov.hmrc.calculator.annotations | ||
|
||
import kotlin.reflect.KClass | ||
|
||
@UseExperimental(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CONSTRUCTOR) | ||
@Retention(AnnotationRetention.SOURCE) | ||
expect annotation class Throws(vararg val exceptionClasses: KClass<out Throwable>) |
18 changes: 18 additions & 0 deletions
18
src/iosMain/kotlin/uk/gov/hmrc/calculator/annotations/Throws.kt
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,18 @@ | ||
/* | ||
* Copyright 2019 HM Revenue & Customs | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package uk.gov.hmrc.calculator.annotations | ||
|
||
actual typealias Throws = kotlin.native.Throws |