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

Fresco experiment #16

Open
wants to merge 3 commits into
base: dev
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
2 changes: 2 additions & 0 deletions UltimateAndroidGradle/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ android {
targetSdkVersion 23
versionCode 1
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
Expand Down
2 changes: 2 additions & 0 deletions UltimateAndroidGradle/demoofui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ android {
versionName "1.0.4"
renderscriptTargetApi 22
renderscriptSupportModeEnabled true

multiDexEnabled true
}

signingConfigs {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Dec 13 21:22:23 CST 2014
#Mon Oct 26 10:45:18 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.7-all.zip
6 changes: 4 additions & 2 deletions UltimateAndroidGradle/ultimateandroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ android {

defaultConfig {
// applicationId "com.marshalchen.common"
minSdkVersion 8
minSdkVersion 9
targetSdkVersion 23
versionCode 1
versionName "1.0"

multiDexEnabled true
}
buildTypes {
release {
Expand Down Expand Up @@ -46,7 +48,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'

compile 'com.facebook.fresco:fresco:0.8.0'
compile 'com.marshalchen.ultimaterecyclerview:library:0.3.6'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.nineoldandroids:library:2.4.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.marshalchen.common;

import android.app.Application;

import com.marshalchen.common.commonUtils.urlUtils.FrescoHelper;
import com.marshalchen.common.commonUtils.urlUtils.ImagePipelineConfigFactory;
import com.marshalchen.common.commonUtils.urlUtils.UniversalImageLoader;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
Expand All @@ -16,6 +19,9 @@ public void onCreate() {
// Create global configuration and initialize ImageLoader with this configuration
ImageLoaderConfiguration config = UniversalImageLoader.getDefaultImageLoaderConfiguration(getApplicationContext());
ImageLoader.getInstance().init(config);

// Initialize Fresco
FrescoHelper.init(getApplicationContext(), ImagePipelineConfigFactory.getImagePipelineConfig(getApplicationContext()));
}

@Override
Expand Down
Loading