This file contains hidden or 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
| taskOne.dependsOn build | |
| taskTwo.mustRunAfter build | |
| taskThree.shouldRunAfter taskTwo | |
| build.finalizedBy copyImages |
This file contains hidden or 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
| project(':project1'){} | |
| project(':project2') { | |
| dependencies { | |
| compile project(':project1') | |
| } | |
| } |
This file contains hidden or 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
| apply plugin: 'java' | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| testCompile 'junit:junit:4.12' | |
| compile 'com.google.dagger:dagger:2.0' | |
| compile 'com.google.dagger:dagger-compiler:2.0' |
This file contains hidden or 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
| public class GameData { | |
| public final String hello = "Hello Dagger"; | |
| } |
This file contains hidden or 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
| public class GameData { | |
| public final String hello = "Hello Dagger"; | |
| } |
This file contains hidden or 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
| import dagger.Component; | |
| @Component(modules = GameModule.class) | |
| public interface GameComponent { | |
| void inject(GameSession obj); | |
| } |
This file contains hidden or 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
| import org.junit.Test; | |
| import static org.junit.Assert.*; | |
| public class GameSessionTest { | |
| @Test | |
| public void testGameSession() { | |
| GameSession session = new GameSession(); | |
| DaggerGameComponent.create().inject(session); | |
| assertEquals("Hello Dagger", session.data.hello); | |
| } |
This file contains hidden or 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
| \documentclass[11pt,a4paper]{moderncv} | |
| \moderncvtheme[grey]{classic} | |
| \moderncvicons{awesome} | |
| \usepackage[T1]{fontenc} | |
| % character encoding | |
| \usepackage[utf8x]{inputenc} | |
| \usepackage[english]{babel} | |
| \usepackage{eurosym} |
This file contains hidden or 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
| 'use strict'; | |
| import React, { | |
| AppRegistry, | |
| Component | |
| } from 'react-native'; | |
| import Scroller from './app/scroller.js'; | |
| class AppTest2 extends Component { | |
| render() { | |
| return ( |
This file contains hidden or 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
| 'use strict'; | |
| import React, { | |
| AppRegistry, | |
| Component, | |
| StyleSheet, | |
| Text, | |
| ListView, | |
| View, | |
| Image | |
| } from 'react-native'; |