Skip to content
Merged
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
3 changes: 2 additions & 1 deletion CalligraphySample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "24.0.0"

defaultConfig {
minSdkVersion 8
minSdkVersion 14
targetSdkVersion 24
versionCode project.ext.versionCodeInt
versionName version
Expand All @@ -24,6 +24,7 @@ android {

dependencies {
compile project(':calligraphy')
compile 'io.github.inflationx:viewpump:0.1.0-SNAPSHOT'
compile 'com.android.support:support-v4:24.0.0'
compile 'com.android.support:appcompat-v7:24.0.0'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import android.app.Application;

import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
import io.github.inflationx.viewpump.ViewPump;
import uk.co.chrisjenx.calligraphy3.CalligraphyConfig;
import uk.co.chrisjenx.calligraphy3.CalligraphyInterceptor;

/**
* Created by chris on 06/05/2014.
Expand All @@ -13,12 +15,14 @@ public class CalligraphyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/Roboto-ThinItalic.ttf")
.setFontAttrId(R.attr.fontPath)
.addCustomViewWithSetTypeface(CustomViewWithTypefaceSupport.class)
.addCustomStyle(TextField.class, R.attr.textFieldStyle)
.build()
);
ViewPump.init(ViewPump.builder()
.addInterceptor(new CalligraphyInterceptor(
new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/Roboto-ThinItalic.ttf")
.setFontAttrId(R.attr.fontPath)
.addCustomViewWithSetTypeface(CustomViewWithTypefaceSupport.class)
.addCustomStyle(TextField.class, R.attr.textFieldStyle)
.build()))
.build());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;
import io.github.inflationx.viewpump.ViewPumpContextWrapper;

import static butterknife.ButterKnife.findById;

Expand Down Expand Up @@ -52,17 +52,17 @@ public void run() {
}

/*
Uncomment if you disable PrivateFactory injection. See CalligraphyConfig#disablePrivateFactoryInjection()
Uncomment if you disable PrivateFactory injection. See ViewPumpConfig#setPrivateFactoryInjectionEnabled(boolean)
*/
// @Override
// @TargetApi(Build.VERSION_CODES.HONEYCOMB)
// public View onCreateView(View parent, String name, @NonNull Context context, @NonNull AttributeSet attrs) {
// return CalligraphyContextWrapper.onActivityCreateView(this, parent, super.onCreateView(parent, name, context, attrs), name, context, attrs);
// return ViewPumpContextWrapper.onActivityCreateView(this, parent, super.onCreateView(parent, name, context, attrs), name, context, attrs);
// }

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

}
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ buildscript {

allprojects {
repositories {
mavenLocal()
jcenter()
}
// Is Release Build?
Expand Down
3 changes: 2 additions & 1 deletion calligraphy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "24.0.0"

defaultConfig {
minSdkVersion 7
minSdkVersion 14
targetSdkVersion 24
versionCode project.ext.versionCodeInt
versionName version
Expand All @@ -21,6 +21,7 @@ android {
}

dependencies {
compile 'io.github.inflationx:viewpump:0.1.1-SNAPSHOT'
compile 'com.android.support:appcompat-v7:24.0.0'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chrisjenx what do you think about dependencies here? keep viewpump compile or change to provided? what about appcompat, too?

}

Expand Down
4 changes: 2 additions & 2 deletions calligraphy/consumer-proguard-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# public *;
#}

-keep class uk.co.chrisjenx.calligraphy.* { *; }
-keep class uk.co.chrisjenx.calligraphy.*$* { *; }
-keep class uk.co.chrisjenx.calligraphy3.* { *; }
-keep class uk.co.chrisjenx.calligraphy3.*$* { *; }

2 changes: 1 addition & 1 deletion calligraphy/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# See parent properties for global properties

POM_NAME=Calligraphy
POM_ARTIFACT_ID=calligraphy
POM_ARTIFACT_ID=calligraphy3
POM_PACKAGING=aar
2 changes: 1 addition & 1 deletion calligraphy/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="uk.co.chrisjenx.calligraphy">
package="uk.co.chrisjenx.calligraphy3">
<application />
</manifest>

This file was deleted.

This file was deleted.

Loading