Skip to content

Commit

Permalink
Remove support for Android versions older than 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Jul 20, 2018
1 parent a2c5733 commit d255f05
Show file tree
Hide file tree
Showing 26 changed files with 178 additions and 631 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -70,7 +70,7 @@ android {
defaultConfig {
versionCode 195
versionName "4.10"
minSdkVersion 14
minSdkVersion 17
targetSdkVersion 28
multiDexEnabled true
applicationId "com.irccloud.android"
Expand Down
Binary file removed res/drawable-nodpi/ic_sony_bw.png
Binary file not shown.
Binary file removed res/drawable-nodpi/ic_sony_extension.png
Binary file not shown.
Binary file removed res/drawable-nodpi/ic_sony_msg.png
Binary file not shown.
Binary file removed res/drawable-nodpi/ic_sony_msg_2.png
Binary file not shown.
Binary file removed res/drawable/badge_counter.png
Binary file not shown.
Binary file removed res/drawable/headset_pro_cancel_icn.png
Binary file not shown.
Binary file removed res/drawable/headset_pro_focus_xs_icn.png
Binary file not shown.
Binary file removed res/drawable/headset_pro_ok_icn.png
Binary file not shown.
68 changes: 0 additions & 68 deletions res/layout/smart_watch_notification_widget.xml

This file was deleted.

76 changes: 0 additions & 76 deletions res/layout/smart_watch_widget.xml

This file was deleted.

79 changes: 0 additions & 79 deletions res/xml-v14/preferences_message.xml

This file was deleted.

58 changes: 0 additions & 58 deletions res/xml-v14/preferences_notifications.xml

This file was deleted.

10 changes: 9 additions & 1 deletion res/xml/preferences_message.xml
Expand Up @@ -58,6 +58,14 @@
android:key="mode-showsymbol"
android:defaultValue="false"
android:summary="\@, +, etc." android:title="Show usermode symbols"/>
<SwitchPreference
android:key="emoji-disableconvert"
android:defaultValue="true"
android:title="Convert :emocodes: to emoji"/>
<SwitchPreference
android:key="emoji-nobig"
android:defaultValue="true"
android:title="Enlarge emoji-only messages"/>
<SwitchPreference
android:key="nick-colors"
android:defaultValue="false"
Expand All @@ -66,6 +74,6 @@
android:key="mention-colors"
android:defaultValue="false"
android:title="Colourise mentions"/>
</PreferenceCategory>
</PreferenceCategory>

</PreferenceScreen>
5 changes: 5 additions & 0 deletions res/xml/preferences_notifications.xml
Expand Up @@ -37,6 +37,11 @@
android:key="notify_led_color"
android:defaultValue="1"
android:title="LED"/>
<SwitchPreference
android:key="notify_quickreply"
android:defaultValue="true"
android:summary="Quickly reply to messages from the notification tray"
android:title="Quick Reply"/>
<SwitchPreference
android:key="notifications_all"
android:defaultValue="false"
Expand Down
3 changes: 1 addition & 2 deletions src/com/irccloud/android/IRCCloudApplicationBase.java
Expand Up @@ -66,8 +66,7 @@ public class IRCCloudApplicationBase extends MultiDexApplication {
@Override
public void onCreate() {
super.onCreate();
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1)
TrustKit.initializeWithNetworkSecurityConfiguration(getApplicationContext(), R.xml.network_security_config);
TrustKit.initializeWithNetworkSecurityConfiguration(getApplicationContext(), R.xml.network_security_config);
Fabric.with(this, new Crashlytics());
Crashlytics.log(Log.INFO, "IRCCloud", "Crashlytics Initialized");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
Expand Down
2 changes: 1 addition & 1 deletion src/com/irccloud/android/IRCCloudLinkMovementMethod.java
Expand Up @@ -88,7 +88,7 @@ public static void launchURI(Uri uri, Context context) {
intent.intent.setData(uri);
if(Build.VERSION.SDK_INT >= 22)
intent.intent.putExtra(Intent.EXTRA_REFERRER, Uri.parse(Intent.URI_ANDROID_APP_SCHEME + "//" + context.getPackageName()));
if (Build.VERSION.SDK_INT >= 16 && intent.startAnimationBundle != null) {
if (intent.startAnimationBundle != null) {
context.startActivity(intent.intent, intent.startAnimationBundle);
} else {
context.startActivity(intent.intent);
Expand Down
2 changes: 1 addition & 1 deletion src/com/irccloud/android/NetworkConnection.java
Expand Up @@ -943,7 +943,7 @@ public JSONObject fetchConfig() {

public void set_pastebin_cookie() {
try {
if (Build.VERSION.SDK_INT >= 16 && config != null) {
if (config != null) {
CookieSyncManager sm = CookieSyncManager.createInstance(IRCCloudApplication.getInstance().getApplicationContext());
CookieManager cm = CookieManager.getInstance();
Uri u = Uri.parse(config.getString("pastebin_uri_template"));
Expand Down
2 changes: 1 addition & 1 deletion src/com/irccloud/android/activity/AvatarsActivity.java
Expand Up @@ -373,7 +373,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent imageRet
fileUploadTask = new MainActivity.FileUploadTask(uri, null);
fileUploadTask.avatar = true;
fileUploadTask.orgId = orgId;
if(Build.VERSION.SDK_INT >= 16 && ActivityCompat.checkSelfPermission(AvatarsActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
if(ActivityCompat.checkSelfPermission(AvatarsActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(AvatarsActivity.this,
new String[]{Manifest.permission.READ_EXTERNAL_STORAGE,Manifest.permission.WRITE_EXTERNAL_STORAGE},
REQUEST_EXTERNAL_MEDIA_IRCCLOUD);
Expand Down

0 comments on commit d255f05

Please sign in to comment.