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
<activity android:name="com.appodeal.ads.InterstitialActivity" | |
android:configChanges="orientation|screenSize" | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> | |
<activity android:name="com.appodeal.ads.VideoActivity" | |
android:configChanges="orientation|screenSize" | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" /> | |
<activity android:name="com.appodealx.mraid.MraidActivity" | |
android:configChanges="orientation|screenSize" | |
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/> | |
<activity android:name="com.appodeal.ads.LoaderActivity" |
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
struct Place { | |
var id: String? | |
var name: String? | |
var position: String? | |
init(_ json: JSON) { | |
id = json["id"].string | |
name = json["name"].string | |
position = json["position"].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
sources: | |
- ProjectName/Models | |
templates: | |
- ProjectName/Templates | |
output: | |
ProjectName/Models |
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
protocol JSONAutoRepresentable {} |
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
{% for type in types.based.JSONAutoRepresentable| %} | |
// sourcery:inline:auto:{{ type.name }}.JSONAutoRepresentable | |
init(_ json: JSON) { | |
... |
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
... | |
{% elif variable.isArray %} | |
{{ variable.name }} = json["{{ variable.name|camelToSnakeCase }}"].arrayValue.map({{ variable.typeName.array.elementTypeName.unwrappedTypeName }}.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
... | |
{% elif variable.type.based.JSONAutoRepresentable %} | |
{{ variable.name }} = {{ variable.unwrappedTypeName }}(json["{{ variable.name|camelToSnakeCase }}"]) | |
... |
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
... | |
{% elif variable.type.kind == "enum" %} | |
{{ variable.name }} = {{ variable.unwrappedTypeName }}(rawValue: json["{{ variable.name|camelToSnakeCase }}"].stringValue) ?? {{ variable.defaultValue }} | |
... |
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
{% if variable.annotations.jsonKey %} | |
{{ variable.name }} = json["{{ variable.annotations.jsonKey}}"].{{ variable.unwrappedTypeName|lowerFirstLetter }}{% ifnot variable.isOptional %}Value{% endif %} | |
{% else %} |
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
{% for variable in type.storedVariables where variable|!annotated:"skip" %} | |
.... | |