Skip to content

Added gradle files and restructured for AndroidStudio #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ gen/*
*.dex
google-play-services_lib/
.recommenders/
.DS_Store
9 changes: 0 additions & 9 deletions AndroidPlot/.classpath

This file was deleted.

33 changes: 0 additions & 33 deletions AndroidPlot/.project

This file was deleted.

4 changes: 0 additions & 4 deletions AndroidPlot/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

3 changes: 0 additions & 3 deletions AndroidPlot/.settings/org.eclipse.ltk.core.refactoring.prefs

This file was deleted.

23 changes: 23 additions & 0 deletions AndroidPlot/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.plot"
minSdkVersion 7
targetSdkVersion 7
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile files('libs/Androidplot-core-0.4.4-release.jar')
}
15 changes: 15 additions & 0 deletions AndroidPlot/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}

allprojects {
repositories {
jcenter()
}
}
Binary file added AndroidPlot/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions AndroidPlot/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
36 changes: 0 additions & 36 deletions AndroidPlot/proguard.cfg

This file was deleted.

11 changes: 0 additions & 11 deletions AndroidPlot/project.properties

This file was deleted.

1 change: 1 addition & 0 deletions AndroidPlot/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':app'
11 changes: 0 additions & 11 deletions AndroidRss/.classpath

This file was deleted.

33 changes: 0 additions & 33 deletions AndroidRss/.project

This file was deleted.

4 changes: 0 additions & 4 deletions AndroidRss/.settings/org.eclipse.jdt.core.prefs

This file was deleted.

24 changes: 24 additions & 0 deletions AndroidRss/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.pfizer.android"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile files('libs/jdom-1.0.jar')
compile files('libs/jdom-1.1.3.jar')
compile files('libs/rome-0.9.jar')
compile files('libs/rome-1.0.jar')
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions AndroidRss/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
}
}

allprojects {
repositories {
jcenter()
}
}
Binary file added AndroidRss/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions AndroidRss/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
11 changes: 0 additions & 11 deletions AndroidRss/project.properties

This file was deleted.

1 change: 1 addition & 0 deletions AndroidRss/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':app'
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Android Cookbook Examples

This repo contains about seventy source code examples from the recipes published in the O'Reilly Android Cookbook (see http://androidcookbook.com/), a great source of tutorial material for the Android Developer. Not all recipes in the book or online have code accompanying them; this repo features code that was either linked by the contributor, or in a few cases, re-constructed as a New Project by the editor, for your convenience.
This repo contains about seventy source code examples from the recipes published in the O'Reilly Android Cookbook (see http://androidcookbook.com ), a great source of tutorial material for the Android Developer. Not all recipes in the book or online have code accompanying them; this repo features code that was either linked by the contributor, or in a few cases, re-constructed as a New Project by the editor, for your convenience.

Further note that not all programs used in the book/online appear here; some of the examples in the book/online are only program fragments taken from other programs that can't be included. And of course some projects used as examples in the book/online are routinely hosted elsewhere.

Expand Down Expand Up @@ -121,4 +121,4 @@ There are some things I'd love it if people would contribute:
| Vibrate | Make the device vibrate | - |
| ViewPagerDemo | Swipe among views | - |
| WindowBackgroundDemo | - | - |
|===========
|===========