aboutsummaryrefslogtreecommitdiff
path: root/background/alarms/RepeatingAlarm
diff options
context:
space:
mode:
Diffstat (limited to 'background/alarms/RepeatingAlarm')
-rw-r--r--background/alarms/RepeatingAlarm/Application/build.gradle59
-rw-r--r--background/alarms/RepeatingAlarm/README.md6
2 files changed, 62 insertions, 3 deletions
diff --git a/background/alarms/RepeatingAlarm/Application/build.gradle b/background/alarms/RepeatingAlarm/Application/build.gradle
new file mode 100644
index 00000000..906d12f3
--- /dev/null
+++ b/background/alarms/RepeatingAlarm/Application/build.gradle
@@ -0,0 +1,59 @@
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:2.1.2'
+ }
+}
+
+apply plugin: 'com.android.application'
+
+repositories {
+ jcenter()
+}
+
+dependencies {
+ compile "com.android.support:support-v4:24.1.1"
+ compile "com.android.support:gridlayout-v7:24.1.1"
+ compile "com.android.support:cardview-v7:24.1.1"
+ compile "com.android.support:appcompat-v7:24.1.1"
+}
+
+// The sample build uses multiple directories to
+// keep boilerplate and common code separate from
+// the main sample code.
+List<String> dirs = [
+ 'main', // main sample code; look here for the interesting stuff.
+ 'common', // components that are reused by multiple samples
+ 'template'] // boilerplate code that is generated by the sample template process
+
+android {
+ compileSdkVersion 24
+ buildToolsVersion "24.0.1"
+
+ defaultConfig {
+ minSdkVersion 11
+ targetSdkVersion 24
+ }
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_7
+ targetCompatibility JavaVersion.VERSION_1_7
+ }
+
+ sourceSets {
+ main {
+ dirs.each { dir ->
+ java.srcDirs "src/${dir}/java"
+ res.srcDirs "src/${dir}/res"
+ }
+ }
+ androidTest.setRoot('tests')
+ androidTest.java.srcDirs = ['tests/src']
+
+ }
+
+}
diff --git a/background/alarms/RepeatingAlarm/README.md b/background/alarms/RepeatingAlarm/README.md
index af4826ec..752f8dd9 100644
--- a/background/alarms/RepeatingAlarm/README.md
+++ b/background/alarms/RepeatingAlarm/README.md
@@ -8,8 +8,8 @@ in template-params.xml.
Pre-requisites
--------------
-- Android SDK v23
-- Android Build Tools v23.0.0
+- Android SDK 24
+- Android Build Tools v24.0.1
- Android Support Repository
Getting Started
@@ -33,7 +33,7 @@ submitting a pull request through GitHub. Please see CONTRIBUTING.md for more de
License
-------
-Copyright 2014 The Android Open Source Project, Inc.
+Copyright 2016 The Android Open Source Project, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements. See the NOTICE file distributed with this work for