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 KotlinClass { | |
// here foo is declared as not nullable (nullable declaration would have been fun makeItCrash(foo: String?) | |
fun makeItCrash(foo: String) { | |
} | |
} |
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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion "25.0.2" | |
defaultConfig { | |
applicationId "com.foo.etc.explorer" | |
minSdkVersion 19 | |
targetSdkVersion 25 |
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
machine: | |
java: | |
version: oraclejdk8 | |
environment: | |
ANDROID_HOME: /home/ubuntu/android | |
checkout: | |
post: | |
- git submodule sync | |
- git submodule init | |
- git submodule update |
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
private void initOneSignal() { | |
OneSignal.startInit(this) | |
.setNotificationOpenedHandler(new NotificationsHandler()) | |
.init(); | |
OneSignal.idsAvailable(new OneSignal.IdsAvailableHandler() { | |
@Override | |
public void idsAvailable(String userId, String registrationId) { | |
Log.d("", ""); |
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
@Singleton | |
@Component(modules = {ActivityModule.class, FragmentModule.class}) | |
public interface ActivityComponent { | |
void inject(MyActivity activity); | |
} |
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
@Target({TYPE, FIELD, ANNOTATION_TYPE, METHOD}) | |
@Retention(RUNTIME) | |
@Constraint(validatedBy = CheckPasswordValidator.class) | |
@Documented | |
public @interface CheckPassword { | |
String message() default ""; | |
Class<?>[] groups() default {}; | |
Class<? extends Payload>[] payload() default {}; |
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
{ | |
"name": "cloud-repository-dev", | |
"workspaces": { | |
"predefined": ["otherWorkspace"], | |
"default": "default", | |
"allowCreation": true, | |
"initialContent": { | |
"otherWorkspace": "conf/initialContent/init.xml" | |
} | |
}, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<parent> | |
<artifactId>model</artifactId> | |
<groupId>com.dooapp</groupId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> |
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
public class Bar { | |
private String somefield; | |
private String someotherfield; | |
public String getSomeotherfield() { | |
return someotherfield; | |
} | |
public void setSomeotherfield(String someotherfield) { |
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
public class AuthentificationIT extends WisdomTest { | |
@Inject | |
AuthentificationController authentificationController; | |
@Test | |
public void testLogin() { | |
assertThat(200).isEqualTo(200); | |
} | |
} |
NewerOlder