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
<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="pl"> | |
<plurals name="numberOfSongsAvailable"> | |
<item quantity="one">Znaleziono %d piosenkę.</item> | |
<item quantity="few">Znaleziono %d piosenki.</item> | |
<item quantity="other">Znaleziono %d piosenek.</item> | |
</plurals> | |
</resources> |
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
val text = resources.getString(R.string.welcome_message, 4) //"You have 4 new messages." |
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
<!DOCTYPE resources [ | |
<!ENTITY foo "Foo"> | |
]> | |
<resources> | |
<string name="app_name">&foo;</string> | |
<string name="busy_warning">Sorry, &foo; is working hard, please try again in a moment.</string> | |
<string name="trademark">&foo; is a registerd trademark, all rights reserved.</string> | |
</resources> |
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
inputs: | |
- version: 0.3.1-beta | |
opts: | |
title: "Flutter version" | |
summary: Flutter version including channel. Without `v` prefix. E.g. `0.2.8-alpha` or `0.3.0-dev`. | |
is_expand: true | |
is_required: true | |
- working_dir: $BITRISE_SOURCE_DIR | |
opts: |
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
// Config ... | |
type Config struct { | |
Version string `env:"version,required"` | |
WorkingDir string `env:"working_dir,dir"` | |
Commands []string `env:"commands,required"` | |
} |
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
- change-workdir: | |
title: Switch working dir to test / _tmp dir | |
description: |- | |
To prevent step testing issues, like referencing relative | |
files with just './some-file' in the step's code, which would | |
work for testing the step from this directory directly | |
but would break if the step is included in another `bitrise.yml`. | |
run_if: "true" | |
inputs: | |
- path: ./_tmp |
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
func TestDownloadFileUnreachableURL(t *testing.T) { | |
dummyFile, err := os.Open("/dev/null") | |
require.NoError(t, err) | |
err = downloadFile("http://unreachable.invalid", dummyFile) | |
require.Error(t, err) | |
} |
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
deps: | |
brew: | |
- name: git | |
- name: curl | |
- name: unzip | |
apt_get: | |
- name: git | |
- name: curl | |
- name: unzip | |
- name: libglu1-mesa |
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
func downloadFile(downloadURL string, outFile *os.File) error { | |
response, err := http.Get(downloadURL) | |
if err != nil { | |
return err | |
} | |
defer func() { | |
if err := response.Body.Close(); err != nil { | |
log.Warnf("Failed to close (%s) body", downloadURL) | |
} |
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
inputs: | |
- category: | |
opts: | |
title: "Joke category, optional." | |
summary: | | |
Optional category of the joke, see [list of available categories](https://api.chucknorris.io/jokes/categories). | |
If empty joke won't be restricted to any category. | |
is_expand: true | |
is_required: false | |
- api_base_url: "https://api.chucknorris.io" |