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
package com.death.timberdemo; | |
import android.app.Application; | |
public class ApplicationController extends Application { | |
public static boolean isDebug; | |
@Override | |
public void onCreate() { | |
super.onCreate(); |
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
package com.death.timberdemo; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
public class MainActivity extends AppCompatActivity { | |
private static final String TAG = MainActivity.class.getSimpleName(); | |
@Override |
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
-assumenosideeffects class android.util.Log { | |
public static *** d(...); | |
public static *** v(...); | |
public static *** e(...); | |
} |
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
package com.death.timberdemo; | |
import android.app.Application; | |
import timber.log.Timber; | |
public class ApplicationController extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); |
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
package com.death.timberdemo; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import timber.log.Timber; | |
public class MainActivity extends AppCompatActivity { | |
private static final String TAG = MainActivity.class.getSimpleName(); |
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
package androidx.databinding; | |
import androidx.annotation.NonNull; | |
/** | |
* A convenience class that implements {@link android.databinding.Observable} interface and provides | |
* {@link #notifyPropertyChanged(int)} and {@link #notifyChange} methods. | |
*/ | |
public class BaseObservable implements Observable { | |
private transient PropertyChangeRegistry mCallbacks; |
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
package androidx.databinding; | |
/** | |
* Observable classes provide a way in which data bound UI can be notified of changes. | |
* {@link ObservableList} and {@link ObservableMap} also provide the ability to notify when | |
* changes occur. ObservableField, ObservableParcelable, ObservableBoolean, ObservableByte, | |
* ObservableShort, ObservableInt, ObservableLong, ObservableFloat, and ObservableDouble provide | |
* a means by which properties may be notified without implementing Observable. | |
* <p> | |
* An Observable object should notify the {@link OnPropertyChangedCallback} whenever |
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
import android.app.Application | |
import androidx.databinding.Observable | |
import androidx.databinding.PropertyChangeRegistry | |
import androidx.lifecycle.AndroidViewModel | |
abstract class ObservableViewModel(app: Application): AndroidViewModel(app), Observable { | |
@delegate:Transient | |
private val mCallBacks: PropertyChangeRegistry by lazy { PropertyChangeRegistry() } |
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
package com.death.demo | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.compose.Composable | |
import androidx.ui.core.Text | |
import androidx.ui.core.setContent | |
import androidx.ui.material.MaterialTheme | |
import androidx.ui.tooling.preview.Preview |
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
package com.death.demo | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.compose.Composable | |
import androidx.compose.State | |
import androidx.compose.state | |
import androidx.compose.unaryPlus | |
import androidx.ui.core.Text | |
import androidx.ui.core.setContent |
OlderNewer