Skip to content

Commit 1b25d5e

Browse files
committed
Merge pull request #61 from kenyee/gradle-appcompat-wip
add Eclipse Gradle docs and update to ADT v.18
2 parents e187068 + c0f55c6 commit 1b25d5e

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ gen-external-apklibs
2121
out
2222
.DS_Store
2323
classes
24-
.gradle
24+
.gradle
25+
app/.project
26+
app/.classpath
27+
app/.settings/
28+
.settings/

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,26 @@ Android security as it it won't let you directly replace an app that's been
9595
signed with a different key. Manually uninstall Android Bootstrap from your device and
9696
you will then be able to install your own built version.
9797

98+
## Building in Eclipse
99+
100+
This project depends on the Android V7 Support Library for the AppCompat toolbar, so
101+
you have to import it into your workspace. Do File/Import and then choose Android
102+
then Existing Androi Code Into Workspace and select the library from
103+
\Android_SDK\extras\android\support\v7\appcompat.
104+
105+
Next, you'll need to install the [Eclipse Integration Gradle Plugin](https://github.com/spring-projects/eclipse-integration-gradle).
106+
and restart Eclipse.
107+
108+
You can then import the Android Bootstrap project by doing File/Import/Gradle/Gradle Project
109+
and the clicking the Browse button to point to the Android Bootstrap directory. Click
110+
on Build Model, and then you can put a checkbox next to "app" and finish the import. This
111+
will show up as "app" in your Eclipse workspace. You can rename it by right clicking on it
112+
and choosing Refactor/Rename.
113+
114+
If it complains that "/gen already exists but is not a source folder", right click on the
115+
gen folder and then BuildPath/SourceFolder.
116+
117+
98118
## Acknowledgements
99119

100120
Android Bootstrap is a result of a template project I've developed over the years as well as

app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ dependencies {
3636
}
3737

3838
android {
39-
compileSdkVersion 17
40-
buildToolsVersion '17.0.0'
39+
compileSdkVersion 18
40+
buildToolsVersion '18.0.1'
4141

4242
defaultConfig {
4343
minSdkVersion 8
44-
targetSdkVersion 17
44+
targetSdkVersion 18
4545
versionCode 102
4646
versionName '1.0'
4747
}

0 commit comments

Comments
 (0)