Skip to content

Commit

Permalink
Gradle编译
Browse files Browse the repository at this point in the history
  • Loading branch information
daimajia committed Jan 23, 2014
1 parent 574d0b1 commit 9e578c1
Show file tree
Hide file tree
Showing 163 changed files with 13,103 additions and 136 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ proguard/
*.ipr
*.iws
.idea/

.gradle
build/
52 changes: 52 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}


apply plugin: 'android'

repositories {
mavenCentral()
mavenLocal()
}


dependencies {
compile fileTree(dir: 'src/main/libs', include: '*.jar')
compile 'com.android.support:support-v4:19.0.+'
compile 'com.android.support:appcompat-v7:+'
compile project(':libraries:EverNoteEx')
compile project(':libraries:ExGridView')
}




android {
compileSdkVersion 19
buildToolsVersion '19.0.1'

lintOptions {
abortOnError false
}
sourceSets {
main{
assets {
srcDir 'src/main/assets'
}
}
}

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
92 changes: 0 additions & 92 deletions build.xml

This file was deleted.

10 changes: 10 additions & 0 deletions libraries/EverNoteEx/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.evernote.androidsdk"
android:versionCode="1"
android:versionName="1.0">

<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/>
<application />
</manifest>
42 changes: 42 additions & 0 deletions libraries/EverNoteEx/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.7.+'
}
}


apply plugin: 'android-library'

dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:support-v4:19.0.+'
compile 'com.android.support:appcompat-v7:+'
}

android {
compileSdkVersion 19
buildToolsVersion "19.0.1"

lintOptions {
abortOnError false
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}

instrumentTest.setRoot('tests')
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}
Binary file added libraries/EverNoteEx/libs/evernote-api-1.25.jar
Binary file not shown.
Binary file added libraries/EverNoteEx/libs/scribe-1.3.1.jar
Binary file not shown.
13 changes: 13 additions & 0 deletions libraries/EverNoteEx/res/layout/esdk__webview.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">

<WebView
android:id="@+id/esdk__webview"
android:layout_height="match_parent"
android:layout_width="match_parent" />

</LinearLayout>
10 changes: 10 additions & 0 deletions libraries/EverNoteEx/res/menu/esdk__oauth.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:evermemo="http://schemas.android.com/apk/res-auto" >

<item
android:id="@+id/esdk__switch_service"
android:title=""
evermemo:showAsAction="always"/>

</menu>
10 changes: 10 additions & 0 deletions libraries/EverNoteEx/res/values/esdk__strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="esdk__evernote">Evernote</string>
<string name="esdk__evernote_login_failed">Evernote Login Failed</string>
<string name="esdk__evernote_login_successful">Evernote login successful</string>
<string name="esdk__err_protocol_version">Incomatible EDAM client protocol version</string>
<string name="esdk__err_authentication">Error authenticating to Evernote</string>
<string name="esdk__err_api_setup">Error intializing Evernote API</string>
<string name="esdk__loading">Loading...</string>
</resources>
Loading

0 comments on commit 9e578c1

Please sign in to comment.