Skip to content

Commit

Permalink
Version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianoPAlmeida committed Feb 5, 2020
1 parent 055fd99 commit a5526d2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

MIT License

Copyright (c) 2017 Luciano Almeida
Copyright (c) 2020 Luciano Almeida

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://opensource.org/licenses/MIT)
[![Travis](https://img.shields.io/travis/LucianoPAlmeida/variable-injector.svg)](https://travis-ci.org/LucianoPAlmeida/variable-injector)
[![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)](https://swift.org)
[![Xcode](https://img.shields.io/badge/Xcode-10.2-blue.svg)](https://developer.apple.com/xcode)
[![Swift](https://img.shields.io/badge/Swift-5.1-orange.svg)](https://swift.org)
[![Xcode](https://img.shields.io/badge/Xcode-11.2-blue.svg)](https://developer.apple.com/xcode)
[![SPM](https://img.shields.io/badge/SPM-orange.svg)](https://swift.org/package-manager/)

Variable injector is a very simple project with the goal of inject CI pipelines environment variables values into **Swift** code static values before compilation and Continuous deployment to a specific environment(Development, Testing or Production) where we can define the values injected for each build and deployment e.g. an API URL that the App uses and is different for each environment. Also, it allows us to not expose our production keys and values in statically in our code.
Expand All @@ -18,7 +18,7 @@ We can manually download the binary from the [releases](https://github.com/Lucia
```sh
CURRENT_DIR="$PWD"
cd /tmp
curl -OL https://github.com/LucianoPAlmeida/variable-injector/releases/download/0.2.1/x86_64-apple-macosx.zip
curl -OL https://github.com/LucianoPAlmeida/variable-injector/releases/download/0.3.1/x86_64-apple-macosx.zip
unzip x86_64-apple-macosx.zip
cp -f ./x86_64-apple-macosx/release/variable-injector /usr/local/bin/variable-injector

Expand All @@ -45,7 +45,7 @@ With that installed and on our `bin` folder, now we can use it.
For a detailed example of using this, check out the article [Continuous Integration Environment Variables in iOS projects using Swift](https://medium.com/@lucianoalmeida1/continuous-integration-environment-variables-in-ios-projects-using-swift-f72e50176a91) on [Medium](https://medium.com).

**Note**
If you having issues with Xcode11 use the version 0.3.0 of the tool.
If you having issues with Xcode11 use the version 0.3.1 of the tool.

You should have a class or struct with your envirionment variables declaration following the $(VAR_NAME) pattern.
Example:
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-binary.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CURRENT_DIR="$PWD"
cd /tmp
curl -OL https://github.com/LucianoPAlmeida/variable-injector/releases/download/0.2.1/x86_64-apple-macosx.zip
curl -OL https://github.com/LucianoPAlmeida/variable-injector/releases/download/0.3.1/x86_64-apple-macosx.zip
unzip x86_64-apple-macosx.zip
cp -f ./x86_64-apple-macosx/release/variable-injector /usr/local/bin/variable-injector

Expand Down

0 comments on commit a5526d2

Please sign in to comment.