Skip to content

Instantly share code, notes, and snippets.

Avatar

Florina Muntenescu florina-muntenescu

  • Google
  • London, United Kingdom
View GitHub Profile
@florina-muntenescu
florina-muntenescu / build.gradle.kts
Created Jul 2, 2021
Proto DataStore config in Gradle Kotlin DSL
View build.gradle.kts
/* Copyright 2021 Google LLC.
SPDX-License-Identifier: Apache-2.0 */
import com.google.protobuf.gradle.*
plugins {
// find latest version number here:
// https://mvnrepository.com/artifact/com.google.protobuf/protobuf-gradle-plugin
id("com.google.protobuf") version "0.8.16"
...
View pre-commit
#!/bin/sh
#
# Add hook scripts to be run before every commit.
# This is called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
#
# To enable this hook save this file in your repo .git/hooks folder
# clean and run tests
@florina-muntenescu
florina-muntenescu / CustomTypefaceSpan.kt
Last active May 1, 2021
Style internationalized text using Annotations
View CustomTypefaceSpan.kt
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View LiveDataExtensions.kt
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View BaseDao.kt
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View Data.kt
/*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software