Skip to content

Commit fae4f6b

Browse files
committed
update bootstraptextbuilder
1 parent f7ac9ad commit fae4f6b

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

AndroidBootstrap/src/main/java/com/beardedhen/androidbootstrap/BootstrapText.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ public static class Builder {
3434
private final boolean editMode;
3535
private final Map<Integer, IconSet> fontIndicesMap;
3636

37+
public Builder(Context context) {
38+
fontIndicesMap = new HashMap<>();
39+
sb = new StringBuilder();
40+
this.context = context.getApplicationContext();
41+
this.editMode = false;
42+
}
43+
3744
public Builder(Context context, boolean editMode) {
3845
fontIndicesMap = new HashMap<>();
3946
sb = new StringBuilder();

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ allprojects {
1313
group = GROUP
1414
repositories {
1515
mavenCentral()
16+
maven {
17+
url "https://jitpack.io" // for snapshot debugging
18+
}
1619
}
1720
}

sample/build.gradle

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,11 @@ android {
2323
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2424
}
2525
}
26-
repositories {
27-
maven {
28-
url "https://jitpack.io" // for snapshot debugging
29-
}
30-
}
3126
}
3227

3328
dependencies {
34-
compile project (':AndroidBootstrap') // replace with Maven dependency in your app
35-
// compile 'com.github.fractalwrench:Android-Bootstrap:-SNAPSHOT'
29+
// compile project (':AndroidBootstrap') // replace with Maven dependency in your app
30+
compile 'com.github.fractalwrench:Android-Bootstrap:-SNAPSHOT'
3631

3732
compile 'com.jakewharton:butterknife:7.0.1'
3833
compile 'com.android.support:appcompat-v7:23.1.1'

0 commit comments

Comments
 (0)