Skip to content

Instantly share code, notes, and snippets.

Avatar
📱

Cyril Niobé CyrilNb

📱
View GitHub Profile
@CyrilNb
CyrilNb / CustomWebView.txt
Last active Sep 16, 2021
[Android] webview permission camera + file picker
View CustomWebView.txt
class MoonPayPaymentWebView : AppCompatActivity() {
companion object {
const val PERMISSION_REQUEST_CODE = 1000
const val REQUEST_SELECT_FILE = 1001
private const val FILECHOOSER_RESULTCODE = 1002
private var mUploadMessage: ValueCallback<Uri?>? = null
var uploadMessage: ValueCallback<Array<Uri>>? = null
}
@CyrilNb
CyrilNb / [LOL] Today matches - Official
Last active Oct 28, 2021
UPDATE GIST by python cron job
View [LOL] Today matches - Official
[{"number_of_games": 3, "end_at": "2021-10-28T20:38:48Z", "serie_id": 4070, "rescheduled": false, "live_embed_url": "https://player.twitch.tv/?channel=lvpes", "tournament": {"begin_at": "2021-10-28T16:00:00Z", "end_at": "2021-11-14T22:00:00Z", "id": 6982, "league_id": 4483, "live_supported": false, "modified_at": "2021-10-28T17:13:16Z", "name": "Knockout Stage", "prizepool": null, "serie_id": 4070, "slug": "league-of-legends-iberian-cup-2021-knockout-stage", "tier": "d", "winner_id": null, "winner_type": "Team"}, "scheduled_at": "2021-10-28T19:00:00Z", "winner": {"acronym": "MADM", "id": 126736, "image_url": "https://cdn.pandascore.co/images/team/image/126736/123px_mad_lions_madridlogo_square.png", "location": "ES", "modified_at": "2021-10-27T21:09:42Z", "name": "MAD Lions Madrid", "slug": "mad-lions-madrid"}, "results": [{"score": 1, "team_id": 3345}, {"score": 2, "team_id": 126736}], "original_scheduled_at": "2021-10-28T19:00:00Z", "id": 610811, "videogame_version": {"current": false, "name": "11.20.1"}, "f
View project.groovy
ext {
compileSDKVersionValue = 29
minSDKVersionValue = 22
targetSDKVersionValue = 29
libraries = [
cardView : 'androidx.cardview:cardview:1.0.0',
androidXLegacySupport : 'androidx.legacy:legacy-support-v4:1.0.0',
androidXAppCompat : 'androidx.appcompat:appcompat:1.1.0',