Skip to content

Commit

Permalink
Update version of gradle plugin (1.0.0-rc4)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkil committed Dec 7, 2014
1 parent 4f138bb commit 38f3325
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 143 deletions.
19 changes: 2 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:0.10.+'
classpath 'com.android.tools.build:gradle:1.0.0-rc4'
}
}

def isReleaseBuild() {
return version.contains("SNAPSHOT") == false
}

allprojects {
version = VERSION_NAME
group = GROUP

repositories {
mavenCentral()
}
}

apply plugin: 'android-reporting'
}
9 changes: 1 addition & 8 deletions library/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devspark.appmsg"
android:versionCode="5"
android:versionName="1.2.0">

<uses-sdk
android:minSdkVersion="4"
android:targetSdkVersion="19"/>
<manifest package="com.devspark.appmsg">

<application/>

Expand Down
17 changes: 9 additions & 8 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
apply plugin: 'android-library'
apply plugin: 'com.android.library'

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
minSdkVersion 4
targetSdkVersion 19
targetSdkVersion 21
versionCode 5
versionName "1.2.0"
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
Expand All @@ -17,7 +20,5 @@ android {
}
}

if (project.hasProperty('nexusUsername')) {
// Used to push in maven
apply from: '../maven_push.gradle'
}
// Used to push in maven
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
82 changes: 0 additions & 82 deletions maven_push.gradle

This file was deleted.

18 changes: 6 additions & 12 deletions sample/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devspark.appmsg.sample"
android:versionCode="5"
android:versionName="1.2.0">

<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19"/>
package="com.devspark.appmsg.sample">

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.Sherlock.Light.DarkActionBar">
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateUnchanged">
android:name=".MainActivity"
android:windowSoftInputMode="stateUnchanged">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

Expand Down
20 changes: 11 additions & 9 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
apply plugin: 'android'

dependencies {
compile project(':library')
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}
apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "19.0.3"
compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
minSdkVersion 7
targetSdkVersion 19
targetSdkVersion 21
versionCode 5
versionName "1.2.0"
}

sourceSets {
Expand All @@ -22,3 +19,8 @@ android {
}
}
}

dependencies {
compile project(':library')
compile 'com.android.support:appcompat-v7:21.0.2'
}
13 changes: 6 additions & 7 deletions sample/src/com/devspark/appmsg/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
import android.animation.LayoutTransition;
import android.annotation.TargetApi;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;
import android.widget.Spinner;

import com.actionbarsherlock.app.SherlockActivity;
import com.devspark.appmsg.AppMsg;

import static android.os.Build.VERSION.SDK_INT;
Expand All @@ -41,11 +41,10 @@

/**
* Sample of AppMsg library.
*
*
* @author Evgeny Shishkin
*
*/
public class MainActivity extends SherlockActivity {
public class MainActivity extends ActionBarActivity {
private static final int NORMAL_POSITION = 1;
private static final int INFO_POSITION = 2;

Expand Down Expand Up @@ -92,7 +91,7 @@ private void enableChangingTransition() {

/**
* Button onClick listener.
*
*
* @param v
*/
public void buttonClick(View v) {
Expand All @@ -115,8 +114,8 @@ private void showAppMsg() {
final CharSequence providedMsg = mProvidedMsg.getText();
final CharSequence msg = isEmpty(providedMsg)
? new StringBuilder().append(mStyle.getSelectedItem())
.append(" ").append(mPriority.getSelectedItem())
.append(" msg#").append(mMsgCount).toString()
.append(" ").append(mPriority.getSelectedItem())
.append(" msg#").append(mMsgCount).toString()
: providedMsg;
final AppMsg.Style style;
boolean customAnimations = false;
Expand Down

0 comments on commit 38f3325

Please sign in to comment.