Skip to content

Application to show how to use Ceylon in Android

License

Notifications You must be signed in to change notification settings

leomindez/TimesLon

Repository files navigation

TimesLon

Example to create a simple Android App using Ceylon Lang

Requirements

  • Ceylon 1.3.x
  • Intellij Plugin
  • Android Studio

Union Types

Using union types can create a single response from server

void response ( Anything(Error | Response? ) response);

Mixin Inheritance

Using interface to be able create interfaces with methods without implementation or implemented methods

shared interface View {
  shared formal void printError(String message);
  shared default void showResult(Result result) {
    print(result.string);
  }
}

Object declaration

Be able to object declaration to create a simple server config

shared object serverconfig {
    shared String baseUrl = "https://androidrules.com";
}

Callable Functions

Be able to create callable functions to replace callback interfaces

  function response(Response response) => print(response.string);

About

Application to show how to use Ceylon in Android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published