Skip to content

Commit 69b666f

Browse files
Merge pull request #33 from happyfoxinc/development
Development - v1.2.0 - UI Improvements
2 parents 32b4997 + a022ed1 commit 69b666f

File tree

189 files changed

+737
-1089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

189 files changed

+737
-1089
lines changed

HelpStackExample/AndroidManifest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
43
package="com.example.helpstackexample"
54
android:versionCode="1"
65
android:versionName="1.0" >
76

87
<uses-sdk
9-
android:minSdkVersion="8"
8+
android:minSdkVersion="9"
109
android:targetSdkVersion="22" />
1110

1211
<uses-permission android:name="android.permission.INTERNET"/>
@@ -22,7 +21,6 @@
2221
android:label="@string/app_name" >
2322
<intent-filter>
2423
<action android:name="android.intent.action.MAIN" />
25-
2624
<category android:name="android.intent.category.LAUNCHER" />
2725
</intent-filter>
2826
</activity>

HelpStackExample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ dependencies {
44
compile fileTree(dir: 'libs', include: '*.jar')
55
compile project(':helpstack')
66

7-
compile 'com.android.support:appcompat-v7:22.2.0'
7+
compile 'com.android.support:appcompat-v7:23.0.0'
88
}
99

1010
android {
11-
compileSdkVersion 22
12-
buildToolsVersion "22.0.1"
11+
compileSdkVersion 23
12+
buildToolsVersion "23.0.0"
1313

1414
sourceSets {
1515
main {

HelpStackExample/res/values-v14/styles.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
AppBaseTheme from BOTH res/values/styles.xml and
66
res/values-v11/styles.xml on API 14+ devices.
77
-->
8-
<style name="HSAppBaseTheme" parent="Theme.AppCompat.Light">
8+
<style name="HSAppBaseTheme" parent="Theme.AppCompat.Light.DarkActionBar">
99
<!-- API 14 theme customizations can go here. -->
1010
<!-- <item name="android:actionBarStyle">@style/MyActionBar</item> -->
1111
</style>
1212

13-
<style name="MyActionBar"
14-
parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
13+
<style name="MyActionBar" parent="@style/Widget.AppCompat.Light.ActionBar.Solid.Inverse">
1514

1615
</style>
1716

HelpStackExample/src/com/example/helpstackexample/HSApplication.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44

55
import com.tenmiles.helpstack.HSHelpStack;
66
import com.tenmiles.helpstack.gears.HSEmailGear;
7-
import com.tenmiles.helpstack.gears.HSZendeskGear;
7+
import com.tenmiles.helpstack.gears.HSHappyfoxGear;
88

9-
10-
11-
public class HSApplication extends Application{
9+
public class HSApplication extends Application {
1210

1311
HSHelpStack helpStack;
1412

@@ -18,16 +16,17 @@ public void onCreate() {
1816

1917
helpStack = HSHelpStack.getInstance(this);
2018

21-
HSEmailGear emailGear = new HSEmailGear( "example@happyfox.com",R.xml.articles);
22-
helpStack.setGear(emailGear);
23-
19+
// HSEmailGear emailGear = new HSEmailGear("foo@bar.com", R.xml.articles);
20+
// helpStack.setGear(emailGear);
2421

25-
/* Uncomment the following to use the Happyfox gear with appropriate support email address */
26-
// HSHappyfoxGear happyfoxGear = new HSHappyfoxGear("https://example.happyfox.com",
27-
// "<Your API Key>",
28-
// "<Your Auth Code>",
29-
// "<Category ID>", "<Priority ID>");
30-
// helpStack.setGear(happyfoxGear);
22+
/* Uncomment the following to use the HappyFox gear with appropriate support email address */
3123

24+
HSHappyfoxGear happyfoxGear = new HSHappyfoxGear(
25+
"http://acmewidgetsco.happyfox.com",
26+
"b3416a6ebf4245bf9bbeb55b296ecf92",
27+
"6b562e17b1ab4c37bc8c955af8f5cc5c",
28+
"107",
29+
"1");
30+
helpStack.setGear(happyfoxGear);
3231
}
3332
}

HelpStackExample/src/com/example/helpstackexample/MainActivity.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ protected void onCreate(Bundle savedInstanceState) {
2222
setContentView(R.layout.activity_main);
2323

2424
if (savedInstanceState == null) {
25-
getSupportFragmentManager().beginTransaction()
26-
.add(R.id.container, new PlaceholderFragment()).commit();
25+
getSupportFragmentManager().beginTransaction().add(R.id.container, new PlaceholderFragment()).commit();
2726
}
2827

2928
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
@@ -33,25 +32,18 @@ protected void onCreate(Bundle savedInstanceState) {
3332

3433
@Override
3534
public boolean onCreateOptionsMenu(Menu menu) {
36-
37-
// Inflate the menu; this adds items to the action bar if it is present.
3835
getMenuInflater().inflate(R.menu.main, menu);
3936
return true;
4037
}
4138

4239
@Override
4340
public boolean onOptionsItemSelected(MenuItem item) {
44-
// Handle action bar item clicks here. The action bar will
45-
// automatically handle clicks on the Home/Up button, so long
46-
// as you specify a parent activity in AndroidManifest.xml.
4741
int id = item.getItemId();
4842
if (id == R.id.action_settings) {
4943
return true;
5044
}
5145
return super.onOptionsItemSelected(item);
5246
}
53-
54-
5547

5648
/**
5749
* A placeholder fragment containing a simple view.
@@ -62,10 +54,8 @@ public PlaceholderFragment() {
6254
}
6355

6456
@Override
65-
public View onCreateView(LayoutInflater inflater, ViewGroup container,
66-
Bundle savedInstanceState) {
67-
View rootView = inflater.inflate(R.layout.fragment_main, container,
68-
false);
57+
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
58+
View rootView = inflater.inflate(R.layout.fragment_main, container, false);
6959
rootView.findViewById(R.id.button1).setOnClickListener(new OnClickListener() {
7060

7161
@Override

helpstack/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
android:versionName="1.0" >
66

77
<uses-sdk
8-
android:minSdkVersion="8"
8+
android:minSdkVersion="9"
99
android:targetSdkVersion="22" />
1010

1111
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

helpstack/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'maven'
44
dependencies {
55
compile fileTree(dir: 'libs', include: '*.jar')
66

7-
compile 'com.android.support:appcompat-v7:22.2.0'
7+
compile 'com.android.support:appcompat-v7:23.0.0'
88

99
compile 'com.google.code.gson:gson:2.3'
1010

@@ -13,8 +13,8 @@ dependencies {
1313
}
1414

1515
android {
16-
compileSdkVersion 22
17-
buildToolsVersion "22.0.1"
16+
compileSdkVersion 23
17+
buildToolsVersion "23.0.0"
1818

1919
sourceSets {
2020
main {
@@ -45,7 +45,7 @@ uploadArchives {
4545
repositories.mavenDeployer {
4646
pom.groupId = 'com.tenmiles'
4747
pom.artifactId = 'helpstack'
48-
pom.version = '1.1.3'
48+
pom.version = '1.2.0'
4949
// Add other pom properties here if you want (developer details / licenses)
5050
repository(url: "file:///Users/anirudh/Desktop/gradleRelease/")
5151
}
227 Bytes
255 Bytes
-420 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)