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
| adb push ./app.apk /data/local/tmp && | |
| adb shell pm install /data/local/temp/app.apk |
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
| adb install ./my_app.apk |
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
| import * as functions from 'firebase-functions'; | |
| import * as admin from 'firebase-admin'; | |
| import axios from "axios" | |
| import * as path from 'path' | |
| import * as os from 'os' | |
| import * as fs from 'fs' | |
| import { PublishedReviews, Config } from 'app-reviews/lib/global-types'; |
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
| import * as admin from 'firebase-admin'; | |
| const serviceAccount from './google-services.json' | |
| admin.initializeApp({ | |
| credential: admin.credential.cert(serviceAccount), | |
| storageBucket: "[project bucket name]" | |
| }) |
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
| const storePublishedReviewsList = async (reviews: PublishedReviews) => { | |
| // callback to store data file | |
| } | |
| const retrivePublishedReviewsList = async (): Promise<PublishedReviews> => { | |
| // callback to retrive data from data source | |
| } | |
| const onNewMessageAvailable = async (messages: string[]) => { | |
| // callback of having new messages |
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
| exports.appReviews = functions.runWith({ timeoutSeconds: 5 * 60 }) | |
| .pubsub | |
| .schedule('every 15 minutes').onRun(async context => { | |
| // magic gonna happen here! | |
| }) |
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
| class TestFrameLayout @JvmOverloads constructor( | |
| context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 | |
| ) : FrameLayout(context, attrs, defStyleAttr) { | |
| private val paint: Paint = Paint() | |
| init { | |
| clipChildren = false | |
| clipToPadding = false | |
| paint.color = Color.WHITE |
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
| class MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| testView.setShadow(R.color.shadow, R.dimen.radius, R.dimen.evl) | |
| } | |
| } |
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
| fun View.setShadow( | |
| @ColorRes shadowColor: Int, | |
| @DimenRes cornerRadius: Int, | |
| @DimenRes elevation: Int, | |
| shadowGravity: Int = Gravity.BOTTOM, | |
| @ColorRes backgroundColorResource: Int = 0 | |
| ) { | |
| val resource = context.resources | |
| val firstLayer = 0 | |
| val ratioTopBottom = 3 |
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
| import android.graphics.Paint; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.graphics.drawable.LayerDrawable; | |
| import android.graphics.drawable.ShapeDrawable; | |
| import android.graphics.drawable.shapes.RoundRectShape; | |
| import android.support.annotation.ColorRes; | |
| import android.support.annotation.DimenRes; | |
| import android.support.v4.content.ContextCompat; | |
| import android.view.Gravity; |
NewerOlder