Skip to content

Instantly share code, notes, and snippets.

@MarkMjw
MarkMjw / dimens.xml
Created May 9, 2014 06:21
Android default resource dimens.xml.
<?xml version="1.0" encoding="utf-8"?>
<!--
/* //device/apps/common/assets/res/any/dimens.xml
**
** Copyright 2006, 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
**
@MarkMjw
MarkMjw / jni.gradle
Last active August 29, 2015 13:56
A gradle script for android jni.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
}
}
apply plugin: 'android'
@MarkMjw
MarkMjw / readKeystore.gradle
Last active December 31, 2015 14:19
Reading the value of keystore from file.
allprojects {
afterEvaluate { project ->
// you should define property in keystore.properties like this :
// storePassword="..."
// keyPassword="..."
// keyAlias="..."
// storeFile="..."
def propsFile = rootProject.file('keystore.properties')
def configName = 'release'
@MarkMjw
MarkMjw / build.gradle
Last active November 27, 2023 13:40
build.gradle base on Android Studio, and modify manifest when building different channel.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.8.+'
}
}
apply plugin: 'android'