robinchew
10/27/2018, 2:04 PMSanthosh
10/28/2018, 4:48 PMSanthosh
10/28/2018, 4:49 PMlawlorslaw
10/29/2018, 2:08 AMPitted
to beta
https://play.google.com/apps/testing/com.etiennelawlor.pitted
Get daily surf reports from your favorite California beaches. Check out the swell, wind, tides, and water temperature before paddling out.
Check it out if you are interested.Daniel
10/29/2018, 7:57 PMPaul Woitaschek
10/29/2018, 8:05 PMPaul Woitaschek
10/29/2018, 8:06 PMallWarningsAsErrors
but I have a generated moshi class that uses java.lang.Integer
and I want to suppress that as I can't change it.Tobi
10/29/2018, 8:16 PMyuriy.stetsyk
10/29/2018, 8:35 PMnoone
10/29/2018, 11:56 PMSuraj
10/30/2018, 6:20 AMinternal
modifier and found that visibility is restricted to a module. And definition of module in context of gradle as per doc is :
a Gradle source set (with the exception that the test source set can access the internal declarations of main);
a)What does gradle source set
mean? Does it mean a gradle module or some subset of it?
b)Do we have any advantages of using internal in a multi module project? like reduces incremental build time or so?nemi
10/30/2018, 12:16 PMclass Foo {
@BindView(R2.id.someText) @JvmField var someText: TextView? = null
fun bind(activity: Activity) {
ButterKnife.bind(this, activity)
requireNotNull(someText)
}
}
The app module has a single activity with the following onCreate
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
Foo().bind(this)
}
When running this “app” it will crash with an `IllegalArgumentException`as the someText
field is going to be null.
The generated Foo_ViewBinding
uses the following piece of code to bind someText
target.someText = Utils.findOptionalViewAsType(source, 2131492945, "field 'someText'", TextView.class);
2131492945 is the value of R.id.someText
nemi
10/30/2018, 12:23 PMpublic class Bar {
@BindView(R2.id.someText) TextView someText;
public void bind(@NotNull Activity activity) {
ButterKnife.bind(this, activity);
if(someText == null) throw new IllegalStateException();
}
}
nemi
10/30/2018, 12:30 PMFoo
when building with 1.2.71 looks like this
public final class Foo {
@org.jetbrains.annotations.Nullable()
@butterknife.BindView(value = hu.nemi.binder.R2.id.someText)
public android.widget.TextView someText;
public final void bind(@org.jetbrains.annotations.NotNull()
android.app.Activity activity) {
}
public Foo() {
super();
}
}
Where as with 1.3.0 it looks like this
public final class Foo {
@org.jetbrains.annotations.Nullable()
@butterknife.BindView(value = 2131492945)
public android.widget.TextView someText;
public final void bind(@org.jetbrains.annotations.NotNull()
android.app.Activity activity) {
}
public Foo() {
super();
}
}
Notice the annotation on the someText
fieldnemi
10/30/2018, 1:08 PMbolot
10/30/2018, 4:44 PMtestImplementation "io.mockk:mockk:1.8.9.kotlin13"
bolot
10/30/2018, 4:45 PM.kotlin13
at the endbolot
10/30/2018, 4:45 PMivano
10/30/2018, 4:46 PMuhe
10/30/2018, 4:46 PMivano
10/30/2018, 4:46 PMivano
10/30/2018, 4:47 PMuhe
10/30/2018, 4:48 PMivano
10/30/2018, 4:54 PMnick
10/30/2018, 8:33 PMnick
10/30/2018, 8:34 PMnick
10/30/2018, 8:34 PMcom.android.databinding:compiler:3.1.3
+--- com.android.databinding:compilerCommon:3.1.3
| +--- com.android.databinding:baseLibrary:3.1.3
| +--- org.antlr:antlr4:4.5.3
| +--- commons-io:commons-io:2.4
| +--- com.googlecode.juniversalchardet:juniversalchardet:1.0.3
| +--- com.google.guava:guava:22.0
| | +--- com.google.code.findbugs:jsr305:1.3.9
| | +--- com.google.errorprone:error_prone_annotations:2.0.18
| | +--- com.google.j2objc:j2objc-annotations:1.1
| | \--- org.codehaus.mojo:animal-sniffer-annotations:1.14
| +--- com.squareup:javapoet:1.8.0
| +--- org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0 -> 1.3.0 FAILED
| +--- com.google.code.gson:gson:2.7
| \--- com.android.tools:annotations:26.1.3
+--- com.android.databinding:baseLibrary:3.1.3
+--- org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.0 -> 1.3.0 FAILED
+--- commons-io:commons-io:2.4
+--- commons-codec:commons-codec:1.6
+--- org.antlr:antlr4:4.5.3
\--- com.googlecode.juniversalchardet:juniversalchardet:1.0.3
nick
10/30/2018, 8:43 PMdarkmoon_uk
10/30/2018, 8:48 PMkapt
, lack of which is currently preventing Kotlin projects benefiting from the latest incremental features in both Gradle and Dagger2:
https://youtrack.jetbrains.com/issue/KT-23880
Posted in #dagger