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
class AnotherFragment : Fragment(), IHasComponent { | |
//code... | |
override fun getComponent(): AnotherFeatureComponent = | |
DaggerAnotherFeatureComponent.builder() | |
.appDependency(InjectionManager.instance.findComponent()) | |
.build() | |
} |
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
#!/bin/bash | |
gcloud firebase test android run \ | |
--type instrumentation \ | |
--app ../app/build/outputs/apk/debug/app-debug.apk \ | |
--test ../app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \ | |
--device-ids Nexus6 \ | |
--os-version-ids 21 \ | |
--locales en \ | |
--orientations portrait \ | |
--async |
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
#!/bin/bash | |
curl -X POST https://content.dropboxapi.com/2/files/download \ | |
--header "Authorization: Bearer $DROPBOX_KEY" \ | |
--header "Dropbox-API-Arg: {\"path\": \"/$SIGNING_ARCHIVE_NAME\"}" \ | |
-o "./$SIGNING_ARCHIVE_NAME" \ | |
&& unzip -o $SIGNING_ARCHIVE_NAME \ | |
&& rm $SIGNING_ARCHIVE_NAME |
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
unit-tests: | |
<<: *defaults | |
steps: | |
- checkout | |
- restore_cache: | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Install fastlane | |
command: bundle install | |
- run: |
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
instrumentation-tests: | |
<<: *defaults | |
steps: | |
- checkout | |
- restore_cache: | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Install fastlane | |
command: bundle install | |
- run: |
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
deploy-internal: | |
<<: *defaults | |
steps: | |
- checkout | |
- restore_cache: | |
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} | |
- run: | |
name: Install fastlane | |
command: bundle install | |
- run: |
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
workflows: | |
version: 2 | |
deploy-internal: | |
jobs: | |
- unit-tests | |
- instrumentation-tests | |
- hold: | |
type: approval | |
requires: | |
- unit-tests |
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
//... | |
def props = new Properties() | |
file("../signing.properties").withInputStream { props.load(it) } | |
android { | |
//... | |
signingConfigs { | |
release { | |
keyAlias props.getProperty('keyAlias') |
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
version: 2 | |
defaults: &defaults | |
docker: | |
- image: circleci/android:api-28-alpha | |
environment: | |
JVM_OPTS: -Xmx3200m | |
jobs: | |
unit-tests: |
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
default_platform(:android) | |
platform :android do | |
desc "Run the unit tests" | |
lane :unit_tests do | |
gradle(task: "test") | |
end | |
desc "Assemble a debug apk" | |
lane :assemble_debug do |