Skip to content
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

Updated and made project Android Studio compatible #25

Open
wants to merge 4 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
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
NewQuickAction
==============

NewQuickAction is a small android library to create QuickAction dialog.
NewQuickAction is a small android library to create QuickAction dialogs.

Installation
===============

### Android Studio

1. Paste or clone this library into the `/libs` folder, in the root directory of your project. Create a new folder: `/libs` if not already present. (This step is not required - only for keeping cleaner project structure)

2. Edit `settings.gradle` by adding the library. You have also define a project directory for the library. Your `settings.gradle` should look like below:
```
include ':app', ':NewQuickAction'
project(':NewQuickAction').projectDir = new File('libs/NewQuickAction')
```
3. In `app/build.gradle` add the NewQuickAction library as a dependency:
```
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile project(":NewQuickAction")
}
```

4. Sync project, clean and build. You can use the NewQuickAction as part of your project now.

### Eclipse

1. Before you can add a NewQuickAction to your application, you must first add a library reference:
2. Clone or download a copy of the library
3. Import the library into Eclipse: File menu -> Import -> Existing Project into Workspace
4. Open your application's project properties and add a library reference to `NewQuickAction`


How to Use
==========
Expand Down Expand Up @@ -105,4 +136,4 @@ License
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 1
targetSdkVersion 21
}

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