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
<dependencies> | |
<dependency> | |
<groupid>com.google.apis</groupid> | |
<artifactid>google-api-services-androidpublisher</artifactid> | |
<version>v2-rev2-1.19.0</version> | |
</dependency> | |
<dependency> | |
<groupid>com.google.oauth-client</groupid> | |
<artifactid>google-oauth-client-java6</artifactid> |
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
static final String APPLICATION_NAME = "android-publisher-sample/1.0"; | |
static final String PACKAGE_NAME = "com.nobrain.pulisher_sample"; | |
public static final String APK_FILE_PATH = "/app-release.apk"; | |
static final String SERVICE_ACCOUNT_EMAIL = ""; // must be empty!!! |
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 static final String RESOURCES_CLIENT_SECRETS_JSON = "/client_secrets.json"; |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
apply plugin: 'groovy' | |
apply plugin: 'maven' | |
group = 'com.nobrain.gradle' |
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: 'signing' | |
signing { | |
sign configurations.archives | |
} | |
uploadArchives { | |
repositories { | |
mavenDeployer { |
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
@EView | |
public class MagneticPlateView extends View { | |
// ...중략... | |
@Override | |
protected void onDraw(Canvas canvas) { | |
super.onDraw(canvas); | |
canvas.save(); |
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
def factor(x : Int, y: Int):Int = { | |
if (x == 1) { | |
return y | |
} else { | |
return factor(x-1, x*y) | |
} | |
} | |
factor(10,1) |
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
void refreshTokenAndGoNextActivity(long initTime) { | |
// like fork & join...but need to refactor | |
Observable.combineLatest(Observable.create(new Observable.OnSubscribe<Integer>() { | |
@Override | |
public void call(Subscriber<? super Integer> subscriber) { | |
new Thread(new Runnable() { | |
@Override | |
public void run() { |
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
void doSomething () { | |
IUserSessionDao dao = getUserSessionDao(isParents); | |
// 생략 | |
} | |
IUserSessionDao getUserSessionDao(boolean isParents) { | |
IUserSessionDao userSessionDao; | |
if (isParents) { |
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
publishSubject = PublishSubject.create(); | |
messageSubscription = publishSubject.observeOn(Schedulers.io()) | |
.subscribe(loadType -> { | |
switch (loadType) { | |
case Saved: | |
getSavedMessageList(); | |
break; | |
case Old: |
OlderNewer