Skip to content

Commit ed53442

Browse files
author
Paolo Rotolo
committed
Merge pull request #226 from Glucosio/develop
Releasing Glucosio 0.12.0
2 parents 7401286 + 5240375 commit ed53442

File tree

71 files changed

+1402
-327
lines changed

Some content is hidden

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

71 files changed

+1402
-327
lines changed

app/build.gradle

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ android {
3232
defaultConfig {
3333
minSdkVersion 16
3434
targetSdkVersion 23
35-
versionCode 19
36-
versionName '0.11.0'
35+
versionCode 20
36+
versionName '0.12.0'
37+
applicationId "org.glucosio.android"
3738

3839
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
3940
}
@@ -102,20 +103,13 @@ dependencies {
102103
compile "com.google.android.gms:play-services-wearable:${googlePlayServicesVer}"
103104
compile "com.google.android.gms:play-services-gcm:${googlePlayServicesVer}"
104105

105-
//Smooch
106-
compile 'com.google.code.gson:gson:2.4'
107-
compile 'com.squareup.okhttp:okhttp:2.4.0'
108-
compile 'io.smooch:core:latest.release'
109-
compile 'io.smooch:ui:latest.release'
110-
111-
112106
// Other libraries
113-
compile 'com.github.clans:fab:1.6.2'
114-
compile 'com.wdullaer:materialdatetimepicker:2.2.0'
115-
compile 'com.github.PhilJay:MPAndroidChart:v2.2.3'
107+
compile 'com.github.clans:fab:1.6.3'
108+
compile 'com.wdullaer:materialdatetimepicker:2.3.0'
109+
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
116110
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
117-
compile 'net.danlew:android.joda:2.9.2'
118-
compile('com.mikepenz:materialdrawer:5.0.5@aar') {
111+
compile 'net.danlew:android.joda:2.9.3'
112+
compile('com.mikepenz:materialdrawer:5.2.1@aar') {
119113
transitive = true
120114
}
121115

@@ -147,4 +141,4 @@ configurations.all {
147141
resolutionStrategy.force "com.android.support:design:${androidSupportVer}"
148142
resolutionStrategy.force "com.android.support:appcompat-v7:${androidSupportVer}"
149143
}
150-
apply plugin: 'com.google.gms.google-services'
144+
apply plugin: 'com.google.gms.google-services'

app/google-services.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
"package_name": "org.glucosio.android",
2424
"certificate_hash": "A18AA65A6EFE7F0DE3BA409A02EA6703E21CFEFD"
2525
}
26+
},
27+
{
28+
"client_id": "45702392997-75lumfd1jtpvd7n2q7sac4ebrsjfcbp6.apps.googleusercontent.com",
29+
"client_type": 3
2630
}
2731
],
2832
"api_key": [],
@@ -39,10 +43,15 @@
3943
},
4044
"appinvite_service": {
4145
"status": 2,
42-
"other_platform_oauth_client": []
46+
"other_platform_oauth_client": [
47+
{
48+
"client_id": "45702392997-75lumfd1jtpvd7n2q7sac4ebrsjfcbp6.apps.googleusercontent.com",
49+
"client_type": 3
50+
}
51+
]
4352
},
4453
"google_signin_service": {
45-
"status": 1
54+
"status": 2
4655
},
4756
"ads_service": {
4857
"status": 1
@@ -67,6 +76,10 @@
6776
"package_name": "org.glucosio.android.daily",
6877
"certificate_hash": "9DF65CBC6293EB82523180CAF03912C6CC301FBD"
6978
}
79+
},
80+
{
81+
"client_id": "45702392997-75lumfd1jtpvd7n2q7sac4ebrsjfcbp6.apps.googleusercontent.com",
82+
"client_type": 3
7083
}
7184
],
7285
"api_key": [],
@@ -80,7 +93,12 @@
8093
},
8194
"appinvite_service": {
8295
"status": 2,
83-
"other_platform_oauth_client": []
96+
"other_platform_oauth_client": [
97+
{
98+
"client_id": "45702392997-75lumfd1jtpvd7n2q7sac4ebrsjfcbp6.apps.googleusercontent.com",
99+
"client_type": 3
100+
}
101+
]
84102
},
85103
"google_signin_service": {
86104
"status": 1

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
android:theme="@style/GlucosioSettings" />
7272
<activity
7373
android:name=".activity.BackupActivity"
74-
android:label="@string/title_activity_backup"
74+
android:label="@string/title_activity_backup_drive"
7575
android:parentActivityName=".activity.PreferencesActivity"
7676
android:theme="@style/GlucosioSettings">
7777
<meta-data
@@ -83,6 +83,7 @@
8383
android:name="android.support.v4.content.FileProvider"
8484
android:authorities="${applicationId}.provider.fileprovider"
8585
android:exported="false"
86+
android:readPermission="${applicationId}.provider.fileprovider.READ"
8687
android:grantUriPermissions="true">
8788
<meta-data
8889
android:name="android.support.FILE_PROVIDER_PATHS"

app/src/main/java/org/glucosio/android/GlucosioApplication.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.glucosio.android.invitations.GoogleInvitation;
3535
import org.glucosio.android.invitations.Invitation;
3636

37-
import io.smooch.core.Smooch;
3837
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
3938

4039
public class GlucosioApplication extends Application {
@@ -45,9 +44,6 @@ public class GlucosioApplication extends Application {
4544
public void onCreate() {
4645
super.onCreate();
4746

48-
// Initialize Smooch
49-
Smooch.init(this, "dxopifgi0mylv4invg5lrb66r");
50-
5147
// Get Dyslexia preference and adjust font
5248
SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
5349
boolean isDyslexicModeOn = sharedPref.getBoolean("pref_font_dyslexia", false);

app/src/main/java/org/glucosio/android/activity/AboutActivity.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828
import android.preference.PreferenceFragment;
2929
import android.support.v7.app.AppCompatActivity;
3030
import android.view.MenuItem;
31+
import android.widget.Toast;
3132

3233
import org.glucosio.android.GlucosioApplication;
3334
import org.glucosio.android.R;
3435
import org.glucosio.android.analytics.Analytics;
3536

3637
import java.util.Locale;
3738

38-
import io.smooch.ui.ConversationActivity;
3939
import uk.co.chrisjenx.calligraphy.CalligraphyContextWrapper;
4040

4141
public class AboutActivity extends AppCompatActivity {
@@ -119,7 +119,15 @@ public boolean onPreferenceClick(Preference preference) {
119119
feedbackPref.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
120120
@Override
121121
public boolean onPreferenceClick(Preference preference) {
122-
ConversationActivity.show(getActivity());
122+
// Open email intent
123+
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:[email protected]"));
124+
boolean activityExists = emailIntent.resolveActivityInfo(getActivity().getPackageManager(), 0) != null;
125+
126+
if (activityExists) {
127+
startActivity(emailIntent);
128+
} else {
129+
Toast.makeText(getActivity().getApplicationContext(),getResources().getString(R.string.menu_support_error1), Toast.LENGTH_LONG).show();
130+
}
123131

124132
return false;
125133
}

0 commit comments

Comments
 (0)