Skip to content
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: 0 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ dependencies {
compile "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
compile "com.android.support:animated-vector-drawable:$rootProject.supportLibraryVersion"

// font
compile "uk.co.chrisjenx:calligraphy:$rootProject.calligraphyVersion"

// network
compile "com.amitshekhar.android:rx2-android-networking:$rootProject.rx2FastAndroidNetworking"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

import dagger.Module;
import dagger.Provides;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;

/**
* Created by amitshekhar on 03/02/17.
Expand Down Expand Up @@ -118,12 +117,5 @@ ApiHeader.ProtectedApiHeader provideProtectedApiHeader(@ApiInfo String apiKey,
preferencesHelper.getAccessToken());
}

@Provides
@Singleton
CalligraphyConfig provideCalligraphyDefaultConfig() {
return new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/source-sans-pro/SourceSansPro-Regular.ttf")
.setFontAttrId(R.attr.fontPath)
.build();
}

}
5 changes: 0 additions & 5 deletions app/src/main/java/com/mindorks/framework/mvp/MvpApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import javax.inject.Inject;

import uk.co.chrisjenx.calligraphy.CalligraphyConfig;


/**
Expand All @@ -39,9 +38,6 @@ public class MvpApp extends Application {
@Inject
DataManager mDataManager;

@Inject
CalligraphyConfig mCalligraphyConfig;

private ApplicationComponent mApplicationComponent;

@Override
Expand All @@ -60,7 +56,6 @@ public void onCreate() {
AndroidNetworking.enableLogging(Level.BODY);
}

CalligraphyConfig.initDefault(mCalligraphyConfig);
}

public ApplicationComponent getComponent() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

import dagger.Module;
import dagger.Provides;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;

/**
* Created by janisharali on 27/01/17.
Expand Down Expand Up @@ -117,12 +116,4 @@ ApiHeader.ProtectedApiHeader provideProtectedApiHeader(@ApiInfo String apiKey,
preferencesHelper.getAccessToken());
}

@Provides
@Singleton
CalligraphyConfig provideCalligraphyDefaultConfig() {
return new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/source-sans-pro/SourceSansPro-Regular.ttf")
.setFontAttrId(R.attr.fontPath)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
import com.mindorks.framework.mvp.utils.NetworkUtils;

import butterknife.Unbinder;
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;

/**
* Created by janisharali on 27/01/17.
Expand Down Expand Up @@ -70,10 +69,7 @@ public ActivityComponent getActivityComponent() {
return mActivityComponent;
}

@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
}


@TargetApi(Build.VERSION_CODES.M)
public void requestPermissionsSafely(String[] permissions, int requestCode) {
Expand Down
25 changes: 5 additions & 20 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<item name="android:textSize">16sp</item>
<item name="android:typeface">sans</item>
<item name="drawerArrowStyle">@style/MaterialDrawer.DrawerArrowStyle</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Regular</item>
<item name="android:fontFamily">@font/sourcesanspro_regular</item>
<item name="android:homeAsUpIndicator">@drawable/ic_arrow_back_white_24px</item>
</style>

Expand All @@ -43,21 +43,6 @@
<item name="color">@color/white</item>
</style>

<style name="TextAppearance.Text.Regular" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Regular.ttf</item>
</style>

<style name="TextAppearance.Text.Bold" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Bold.ttf</item>
</style>

<style name="TextAppearance.Text.Light" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Light.ttf</item>
</style>

<style name="TextAppearance.Text.Italic" parent="android:TextAppearance">
<item name="fontPath">fonts/source-sans-pro/SourceSansPro-Italic.ttf</item>
</style>

<style name="TextStyle">
<item name="android:layout_marginTop">2dp</item>
Expand All @@ -68,22 +53,22 @@
</style>

<style name="TextStyle.Title" parent="TextStyle">
<item name="android:textAppearance">@style/TextAppearance.Text.Regular</item>
<item name="android:fontFamily">@font/sourcesanspro_regular</item>
</style>

<style name="TextStyle.Title.Sub" parent="TextStyle.Title">
<item name="android:textAppearance">@style/TextAppearance.Text.Light</item>
<item name="android:fontFamily">@font/sourcesanspro_light</item>
<item name="android:textSize">14sp</item>
</style>

<style name="TextStyle.Heading" parent="TextStyle">
<item name="android:textSize">16sp</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Bold</item>
<item name="android:fontFamily">@font/sourcesanspro_bold</item>
</style>

<style name="TextStyle.Comment" parent="TextStyle">
<item name="android:textSize">16sp</item>
<item name="android:textAppearance">@style/TextAppearance.Text.Italic</item>
<item name="android:fontFamily">@font/sourcesanspro_italic</item>
</style>

<style name="Toolbar" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar">
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.0.0-alpha5'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -42,16 +42,16 @@ task clean(type: Delete) {
ext {
// Sdk and tools
minSdkVersion = 16
targetSdkVersion = 25
compileSdkVersion = 25
buildToolsVersion = '25.0.2'
targetSdkVersion = 26
compileSdkVersion = 26
buildToolsVersion = '26.0.0'

// App dependencies
supportLibraryVersion = '25.3.1'
supportLibraryVersion = '26.+'
gsonVersion = '2.8.0'
calligraphyVersion = '2.2.0'
glideVersion = '3.7.0'


rx2FastAndroidNetworking = '1.0.0'

dagger2Version = '2.8'
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip