Skip to content

Commit

Permalink
Fix build issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Issac committed Aug 23, 2014
1 parent 67917b8 commit 3094061
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 16 deletions.
34 changes: 28 additions & 6 deletions Driibo/build.gradle
Expand Up @@ -3,21 +3,21 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'android'
apply plugin: 'com.android.application'

repositories {
mavenCentral()
}

dependencies {
compile 'com.android.support:support-v4:18.0.+'
compile 'com.android.support:support-v4:19.1.0'
compile 'com.google.code.gson:gson:2.2.4'
compile files('libs/volley.jar')
compile project(':extras:ActionBar-PullToRefresh')
compile project(':extras:ListViewAnimationLib')
compile files('libs/volley.jar')
}

tasks.withType(Compile) {
Expand All @@ -29,7 +29,7 @@ int VERSION_CODE = 3

android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
buildToolsVersion '19.1.0'

defaultConfig {
minSdkVersion 14
Expand All @@ -47,9 +47,31 @@ android {
}
}

signingConfigs {
signing
}

buildTypes {
release {
signingConfig signingConfigs.driibo
if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.signing
}
}
}
}

if (project.hasProperty('storeFile')) {
android.signingConfigs.signing.storeFile = file(storeFile)
}

if (project.hasProperty('storePassword')) {
android.signingConfigs.signing.storePassword = storePassword
}

if (project.hasProperty('keyAlias')) {
android.signingConfigs.signing.keyAlias = keyAlias
}

if (project.hasProperty('keyPassword')) {
android.signingConfigs.signing.keyPassword = keyPassword
}
4 changes: 4 additions & 0 deletions Driibo/gradle.properties
@@ -0,0 +1,4 @@
storeFile= ../RefacTech.keystore
storePassword= RefacTech
keyAlias= Driibo
keyPassword= RefacTech
2 changes: 1 addition & 1 deletion Driibo/src/main/AndroidManifest.xml
Expand Up @@ -30,7 +30,7 @@
android:name=".ui.MainActivity"
android:configChanges="screenSize|orientation"
android:label="@string/app_name">
<intent-filter>r
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
Expand Down
Expand Up @@ -37,6 +37,8 @@ public GsonRequest(String url, Class<T> clazz, Map<String, String> headers,
this.clazz = clazz;
this.headers = headers;
this.listener = listener;


}

@Override
Expand Down
10 changes: 7 additions & 3 deletions Driibo/src/main/java/com/refactech/driibo/ui/MainActivity.java
Expand Up @@ -3,9 +3,11 @@

import com.refactech.driibo.R;
import com.refactech.driibo.type.dribble.Category;
import com.refactech.driibo.ui.fragment.*;

import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshAttacher;
import com.refactech.driibo.ui.fragment.BasePageListFragment;
import com.refactech.driibo.ui.fragment.DrawerFragment;
import com.refactech.driibo.ui.fragment.FollowingFragment;
import com.refactech.driibo.ui.fragment.LikeFragment;
import com.refactech.driibo.ui.fragment.ShotsFragment;

import android.app.ActionBar;
import android.content.Intent;
Expand All @@ -22,6 +24,8 @@
import android.view.View;
import android.view.Window;

import uk.co.senab.actionbarpulltorefresh.library.PullToRefreshAttacher;

public class MainActivity extends FragmentActivity {
private DrawerLayout mDrawerLayout;

Expand Down
4 changes: 2 additions & 2 deletions extras/ActionBar-PullToRefresh/build.gradle
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'android-library'
Expand All @@ -17,7 +17,7 @@ tasks.withType(Compile) {

android {
compileSdkVersion 17
buildToolsVersion "17"
buildToolsVersion '19.1.0'

defaultConfig {
minSdkVersion 14
Expand Down
4 changes: 2 additions & 2 deletions extras/ListViewAnimationLib/build.gradle
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.android.tools.build:gradle:0.12.2'
}
}
apply plugin: 'android-library'
Expand All @@ -13,7 +13,7 @@ dependencies {

android {
compileSdkVersion 17
buildToolsVersion "17"
buildToolsVersion '19.1.0'

defaultConfig {
minSdkVersion 14
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
#Sat Aug 23 20:25:10 CST 2014
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.6-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip

0 comments on commit 3094061

Please sign in to comment.