Skip to content

Commit

Permalink
v1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rignaneseleo committed Jan 27, 2016
1 parent 0e0659c commit 98dc79d
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 128 deletions.
10 changes: 9 additions & 1 deletion Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,12 @@ v1.8
- Added Exit button
- Changed 'share app' intent
- Added dutch translation(TimVNL (Tim Veluwenkamp))
- Added slovak translation (ja_som)
- Added slovak translation (ja_som)

v1.8.1
- Fix logo
- Fix html error page
- Fix zoom one image
- Changed controls colors
- Added the possibility to donate
- "No personal or private info.."
289 changes: 190 additions & 99 deletions SlimFacebook/.idea/workspace.xml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions SlimFacebook/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "it.rignanese.leo.slimfacebook"
minSdkVersion 15
targetSdkVersion 23
versionCode 15
versionName "1.8"
versionCode 16
versionName "1.8.1"
}
buildTypes {
release {
Expand Down
4 changes: 2 additions & 2 deletions SlimFacebook/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
android:theme="@style/SlimFacebookTheme"


android:versionCode="15"
android:versionName="1.8"
android:versionCode="16"
android:versionName="1.8.1"
><!--the official version is wrote in build.gradle-->


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@


import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.ColorDrawable;
Expand Down Expand Up @@ -51,6 +54,8 @@
import java.lang.ref.WeakReference;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.List;



Expand Down Expand Up @@ -671,5 +676,29 @@ private static String decodeUrl(String url) {
.replace("%20", " ");
}
}

// to check if there is the key
protected boolean isProInstalled(Context context) {
// the packagename of the 'key' app
String proPackage = "it.rignanese.leo.donationkey1";

// get the package manager
final PackageManager pm = context.getPackageManager();

// get a list of installed packages
List<PackageInfo> list = pm.getInstalledPackages(PackageManager.GET_DISABLED_COMPONENTS);

// let's iterate through the list
Iterator<PackageInfo> i = list.iterator();
while(i.hasNext()) {
PackageInfo p = i.next();
// check if proPackage is in the list AND whether that package is signed
// with the same signature as THIS package
if((p.packageName.equals(proPackage)) &&
(pm.checkSignatures(context.getPackageName(), p.packageName) == PackageManager.SIGNATURE_MATCH))
return true;
}
return false;
}
}

3 changes: 3 additions & 0 deletions SlimFacebook/app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
<string name="summary_lRemainl">Realizzatore del logo</string>
<string name="exit">Esci</string>
<string name="downloadThisApp">Scarica SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook</string>
<string name="noPersonalInformationAreShared">Nessuna informazione personale o privata riguardo te o il tuo device è raccolta o trasmessa da quest\'app !</string>
<string name="donate">Dona</string>
<string name="donateToContribute">Ho creato quest\'app gratis. Puoi offrirmelo un caffè?</string>

</resources>
10 changes: 10 additions & 0 deletions SlimFacebook/app/src/main/res/values-v21/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<style name="SlimFacebookTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blueSlimFacebookTheme</item>
<item name="colorPrimaryDark">@color/darkBlueSlimFacebookTheme</item>
<item name="colorAccent">@color/blueSlimFacebookTheme</item>
<item name="android:navigationBarColor">?android:attr/colorPrimaryDark</item>
</style>
</resources>
4 changes: 4 additions & 0 deletions SlimFacebook/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
<string name="summary_LeonardoRignanese">Creator and developer of the app</string>
<string name="prefCat_translatorsCredits_title">Translators</string>
<string name="prefCat_designersCredits_title">Designers</string>
<string name="donate">Donate</string>
<string name="donateToContribute">I chose to do it for free. Can you offer me a coffee?</string>
<!--end settings-->

<!--page error-->
Expand All @@ -58,6 +60,8 @@ SlimSocial for Facebook is an Open Source app realized by Leonardo Rignanese
<string name="summary_lRemainl">Creator of the magnificent logo</string>
<string name="exit">Exit</string>
<string name="downloadThisApp">Download SlimSocial for Facebook: \n https://play.google.com/store/apps/details?id=it.rignanese.leo.slimfacebook</string>
<string name="noPersonalInformationAreShared">No personal or private information about you or your device is collected or trasmetted by this app !</string>

<!--end other-->

<!-- PLAY STORE PAGE
Expand Down
14 changes: 1 addition & 13 deletions SlimFacebook/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@
<style name="SlimFacebookTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blueSlimFacebookTheme</item>
<item name="colorPrimaryDark">@color/darkBlueSlimFacebookTheme</item>
<item name="colorAccent">@color/blueSlimFacebookTheme</item>
</style>

<!-- Dark Theme-->
<style name="SlimFacebookThemeDark" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blueSlimFacebookThemeDark</item>
<item name="colorPrimaryDark">@color/darkBlueSlimFacebookThemeDark</item>
</style>

<!-- Light Theme-->
<style name="SlimFacebookThemeLight" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/blueSlimFacebookThemeLight</item>
<item name="colorPrimaryDark">@color/darkBlueSlimFacebookThemeLight</item>
</style>
<!--http://stackoverflow.com/questions/31137357/primarydark-is-not-setting-statusbar-color-in-android-->
</resources>
33 changes: 22 additions & 11 deletions SlimFacebook/app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,31 @@
android:title="@string/title_downloadImages"
android:summary="@string/summary_downloadImages"/>

<!--<ListPreference //toast after click on the theme-->
<!--android:key="pref_key_theme"-->
<!--android:title="@string/title_selectTheme"-->
<!--android:summary=""-->
<!--android:defaultValue="2131361965"-->
<!--android:entries="@array/listThemes"-->
<!--android:entryValues="@array/listValuesThemes"/>-->

<PreferenceScreen
android:key="pref_key_unsubscribeBeta"
android:title="Unsubscribe the beta"
android:summary="After the unsubscrition, unistall this app and reinstall it from Play Store!">
<intent
android:action="android.intent.action.VIEW"
android:data="https://play.google.com/apps/testing/it.rignanese.leo.slimfacebook"/>
</PreferenceScreen>
</PreferenceCategory>

<PreferenceCategory
android:key="prefCat_key_app_information"
android:title="@string/prefCat_app_information_title">
<PreferenceScreen
android:key="pref_noPersonalInformationAreShared"
android:summary="@string/noPersonalInformationAreShared">
</PreferenceScreen>

<PreferenceScreen
android:key="pref_key_version"
android:summary="1.0"
android:title="@string/version">
android:key="pref_key_donate"
android:title="@string/donate"
android:summary="@string/donateToContribute">
<intent
android:action="android.intent.action.VIEW"
android:data="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=7NFPYFBNAL3AL"/>
</PreferenceScreen>

<PreferenceScreen
Expand All @@ -57,5 +64,9 @@
android:targetClass="it.rignanese.leo.slimfacebook.ShowCreditsActivity" />
</PreferenceScreen>

<PreferenceScreen
android:key="pref_key_version"
android:title="@string/version">
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 98dc79d

Please sign in to comment.