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
// Source | |
enum HomeScreenCellType: AutoCaseName { | |
case item(title: String) | |
case childItem(title: String) | |
case loading | |
} | |
// Generated | |
internal extension HomeScreenCellType { | |
enum CaseName: String { |
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
class HomeScreenViewModel: BaseViewModel, AutoViewModelType { | |
typealias Dependencies = HasBaseDependency & HasUserDefaults & HasHelloAPIProvider | |
var dependencies: Dependencies | |
init(dependencies: Dependencies){ | |
self.dependencies = dependencies | |
super.init() | |
} |
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
// Source | |
class AppDependency: HasBaseDependency, AutoDependencyType { | |
// sourcery:begin: hasDependencyType | |
var helloAPIProvider: Reactive<MoyaProvider<HelloTarget>> | |
var userDefaults: UserDefaults | |
// sourcery:end | |
init(plugins: [PluginType], userDefaults: UserDefaults) { | |
self.helloAPIProvider = MoyaProvider<HelloTarget>(plugins: plugins).rx |
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
// Source | |
class SplashScreenViewModel: AutoViewModelType { | |
// sourcery:begin: viewModelInputs | |
var viewDidLoad = PublishRelay<Void>() | |
// sourcery:end | |
// sourcery:begin: viewModelOutputs | |
var isShownForceUpdate: Driver<Void>! | |
// sourcery:end |
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
// Source | |
class AppDependency: AutoDependencyType { | |
private let apiProviderFactory: APIProviderFactory | |
// sourcery:begin: hasDependencyType | |
var helloAPIProvider: Reactive<MoyaProvider<HelloTarget>> | |
// sourcery:end | |
init(apiProviderFactory: APIProviderFactory) { |
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
lane :notify do | |
line_notify( | |
access_token: "Your Access Token", | |
message: "Hello World 🙌 🙌 🙌", #Optional String | |
sticker_package_id: "1", #Optional String | |
sticker_id: "1", #Optional String | |
image_full_size: nil, #Optional **URL** String | |
image_thumbnail: nil, #Optional **URL** String | |
) | |
end |
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
lane :notify do | |
line_notify( | |
access_token: "Your Access Token", | |
message: "Hello World 🌤", | |
) | |
end |
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 React from "react"; | |
import { View, Text, StyleSheet } from "react-native"; | |
export default class MyComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
counter: 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
import React from "react"; | |
import { View, Text, StyleSheet } from "react-native"; | |
export default class MyComponent extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
counter: 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
import React from "react"; | |
import MyComponent from "./MyComponent"; | |
export default class MyApp extends React.Component { | |
render() { | |
return <MyComponent name="Hello World" />; | |
} | |
} |