Skip to content

Commit

Permalink
Use minSdk 9. Update proguard. README for 2.6.0.
Browse files Browse the repository at this point in the history
This branch is specifically for Gingerbread and Honeycomb. Moving
forward, it will insha'Allah only receive critical bugfixes. Future
versions of Quran Android will be targeting 4.x+.
  • Loading branch information
ahmedre committed Mar 9, 2015
1 parent 6d561b6 commit cb1f51b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 63 deletions.
44 changes: 19 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ graphics by [Somaia Gabr](http://twitter.com/somaiagabr).

Arabic support for non-Arabic phones by [Rehab Mohamed](http://twitter.com/hams_rrr), based on Arabic Reshaper project by [Ahmed Essam](http://twitter.com/Neo_4583).

sdk support
------------------------
this version of the code supports Gingerbread and Honeycomb (2.3 - 3.2) devices.

Code Style
------------------------
- tab size: 2
Expand Down Expand Up @@ -62,36 +66,21 @@ App localization

Terms of use
------------
you are free to use parts of the Quran Android code in your application
with some conditions:
you are free to use parts of the Quran Android code in your application with some conditions:

* your app must be respectful of the book of Allah. adding advertisements
above and below each page of Quran is unacceptable, for example (yes,
someone actually did that).
* your app must be respectful of the book of Allah. adding advertisements above and below each page of Quran is unacceptable, for example (yes, someone actually did that).

* your app must provide some significant value over our app - otherwise,
why not just contribute a patch instead?
* your app must provide some significant value over our app - otherwise, why not just contribute a patch instead?

* your app cannot make money from ads or from sales. there are many reasons
for this:
- we made this app for the benefit of people and not to make a profit
- the app costs us money (for serving the pages, translations, etc), not to
mention the time to develop it and to support it.
- not all of the data that we use is okay to be sold. the images, along with
some of the translations are on a license that allows their use and distribution
for free for non-profit uses, but does not allow users to make money from them.

* if you write an application using any of the Quran data (the images, the
translations, etc), you must provide a link to the respective data source
page ([tanzil.net](http://tanzil.net) for the translations and the
[quran images project](http://github.com/quran/quran.com-images) for the images)
both within your application (in an about page) and in your application
description in the market or app store.

* if you use part of (or all of) the quran android code or graphics, you
must provide a link back to the [quran android
project](http://github.com/ahmedre/quran_android) in your application
description and your application itself in an about section.
- the app costs us money (for serving the pages, translations, etc), not to mention the time to develop it and to support it.
- not all of the data that we use is okay to be sold. the images, along with some of the translations are on a license that allows their use and distribution for free for non-profit uses, but does not allow users to make money from them.

* if you write an application using any of the Quran data (the images, the translations, etc), you must provide a link to the respective data source page ([tanzil.net](http://tanzil.net) for the translations and the [quran images project](http://github.com/quran/quran.com-images) for the images) both within your application (in an about page) and in your application description in the market or app store.

* if you use part of (or all of) the quran android code or graphics, you must provide a link back to the [quran android project](http://github.com/ahmedre/quran_android) in your application description and your application itself in an about section.

Open Source Projects Used
-------------------------
Expand All @@ -101,14 +90,19 @@ Open Source Projects Used

Changelog
---------
**development**
**version 2.6.0 (released 3/8/2015)**
- material design!
- switch translations from the panel.
- compile targeting sdk 21
- replace ActionBarSherlock with support-appcompat-v7
- improve share and copy ayah texts
- toggle sura prefix using a boolean flag
- fix gapless repeat releated bugs #426
- fix translation highlighting color in night mode #423
- translation updates for Uzbek
- lots of bugfixes.

*NOTE* - version 2.6 marks the end of line for 2.3/3.x devices. This branch will be used mainly for bugfixes on those devices. Moving forward, all new features will be 4.x+ to make development easier and the code cleaner.

**version 2.5.8 (released 7/5/2014)**
- fixing tablet bugs causing the page not to show up
Expand Down
21 changes: 0 additions & 21 deletions TODO.md

This file was deleted.

8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ android {
}

defaultConfig {
minSdkVersion 7
minSdkVersion 9
targetSdkVersion 21
versionCode 259
versionName "2.5.9"
versionCode 260
versionName "2.6.0gb"
}

signingConfigs {
Expand All @@ -33,7 +33,7 @@ android {

release {
minifyEnabled true
proguardFile 'proguard.cfg'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard.cfg'
signingConfig signingConfigs.release
}
}
Expand Down
14 changes: 1 addition & 13 deletions app/proguard.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
-ignorewarnings
-dontoptimize
-dontobfuscate
-dontskipnonpubliclibraryclasses

-ignorewarnings

-renamesourcefileattribute SourceFile

-keepattributes SourceFile,LineNumberTable,*Annotation*

-printmapping map.txt
-printseeds seed.txt

-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }
-repackageclasses 'android.support.v7'

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
Expand All @@ -26,5 +15,4 @@
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keepclassmembers class * extends android.app.Activity { public void *(android.view.View); }
-keepclassmembers class android.support.v4.app.Fragment { *** getActivity(); public *** onCreate(); public *** onCreateOptionsMenu(...); }

0 comments on commit cb1f51b

Please sign in to comment.