https://github.com/faruktoptas/daily-tips
https://github.com/faruktoptas/daily-tips
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/faruktoptas/daily-tips
- Owner: faruktoptas
- License: apache-2.0
- Created: 2022-10-17T14:51:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T15:17:32.000Z (over 2 years ago)
- Last Synced: 2025-01-13T19:39:40.816Z (3 months ago)
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# daily-tips
### 1. Configure Android lint to generate single report output for a module and its dependencies
```groovy
android {
lint {
checkDependencies true
baseline file("lint-baseline.xml")
setLintConfig(file("../lint.xml"))
htmlOutput file("${project.rootDir}/build/reports/android-lint.html")
}
}
```### 2. Use fastlane for Android in `.gitlab-ci.yml`
* Create `CREDENTIAL_JSON_BASE64` variable and set its content with the output of `base64 -i credentials.json` command.
```yml
deploy:
before_script:
- apt-get -qq update
- apt-get install -qqy --no-install-recommends build-essential ruby-full
- gem install bundler fastlane
- gem install json -v '2.6.2' # use if json module not found
- bundle install
- echo $CREDENTIAL_JSON_BASE64 | base64 -d > credentials.json
script:
- bundle exec fastlane deployneeds: [ "test","lint" ]
only:
- release```