This file contains hidden or 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
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'AIzaSyDD5cwKE6O252bVA766Lyo2cQhG7RbShWA' ); | |
$registrationIds = array("erKXJiDIdiY:APA91bE3N0Bfh6e7tpIT2qcHBD_vqg6ObMQHyrbXEAf6MQqeHcGSauArLzoQRvWb7VpHY_hReEdfw3WxU5Ybk95dWnGT2KAQmC9cHAajuDQx5kJu1Ic2QJKuu3vYNtuRAo6edfuMrbJj" ); | |
// prep the bundle |
This file contains hidden or 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.dbws.fk.utils; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
/** | |
* Created by ayush on 14/9/15. | |
*/ |
This file contains hidden or 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
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
applicationVariants.all { variant -> | |
variant.outputs.each { output -> | |
def outputFile = output.outputFile | |
// println() |
This file contains hidden or 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.dbws.cm.utils; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.preference.PreferenceManager; | |
import android.util.Log; | |
/** | |
* Created by ayushhgoyal on 3/2/15. | |
*/ |
This file contains hidden or 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 Session openActiveSession(Activity activity, | |
boolean allowLoginUI, Session.StatusCallback statusCallback) { | |
OpenRequest openRequest = new OpenRequest(activity); | |
openRequest.setPermissions(Arrays.asList("user_birthday", "email", "user_location")); | |
openRequest.setCallback(statusCallback); | |
Session session = new Session.Builder(activity).build(); | |
if (SessionState.CREATED_TOKEN_LOADED.equals(session.getState()) | |
|| allowLoginUI) { |
This file contains hidden or 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.dbws.golf2.util; | |
import android.util.Log; | |
/** | |
* Created by ayushhgoyal on 16/11/14. | |
*/ | |
public class LogWrapper { | |
static String className; |
This file contains hidden or 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 VisibilityUtil { | |
public static void setViewVisible(View... views) { | |
for (View v : views) { | |
v.setVisibility(View.VISIBLE); | |
} | |
} | |
public static void setViewGone(View... views) { | |
for (View v : views) { |
This file contains hidden or 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 CustomRequest extends Request<JSONObject> { | |
private Response.Listener<JSONObject> listener; | |
private Map<String, String> params; | |
private ProgressDialog progressDialog; | |
private Context context; | |
public ProgressDialog getProgressDialog() { | |
return progressDialog; | |
} |
This file contains hidden or 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 ShrinkableTextView extends TextView { | |
public ShrinkableTextView(Context context) { | |
super(context); | |
} | |
public ShrinkableTextView(Context context, AttributeSet attrs, int defStyle) { | |
super(context, attrs, defStyle); |
This file contains hidden or 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
<your-widget-component-that-has-a-background-color>.getBackground().setColorFilter(Color.<your-desired-color>, PorterDuff.Mode.MULTIPLY); |
NewerOlder