namespaces removed (except Application)

This commit is contained in:
Vladimir Enchev
2014-03-24 11:16:38 +02:00
parent d5a91269f6
commit 1b6fdae4a9
29 changed files with 1930 additions and 2040 deletions

View File

@ -1,27 +1,24 @@
export class ConsoleHelper {
static TAG: string = 'JS';
export module tk {
export class ConsoleHelper {
static TAG: string = 'JS';
static log(message: string): void {
android.util.Log.v(ConsoleHelper.TAG, message);
}
static info(message: string): void {
android.util.Log.i(ConsoleHelper.TAG, message);
}
static error(message: string): void {
android.util.Log.e(ConsoleHelper.TAG, message);
}
static warn(message: string): void {
android.util.Log.w(ConsoleHelper.TAG, message);
}
static timeMillis(): number {
// NOTE: we might need to use currentTimeMillis if we have troubles with the long size
return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
}
static log(message: string): void {
android.util.Log.v(ConsoleHelper.TAG, message);
}
}
static info(message: string): void {
android.util.Log.i(ConsoleHelper.TAG, message);
}
static error(message: string): void {
android.util.Log.e(ConsoleHelper.TAG, message);
}
static warn(message: string): void {
android.util.Log.w(ConsoleHelper.TAG, message);
}
static timeMillis(): number {
// NOTE: we might need to use currentTimeMillis if we have troubles with the long size
return java.lang.System.nanoTime() / 1000000; // 1 ms = 1000000 ns
}
}