Commit graph

51 commits

Author SHA1 Message Date
Madhur Gupta
5d827e44ae Moved hardcoded URLs to a constant file Fixed #2850 (#2851)
* Moved hardcoded URLs to build.grade Fixed #2850

* Moved Urls to a constant file

* Fixed Typo
2019-05-10 15:09:32 +03:00
Vivek Maskara
dcbf076965
Update master with backend overhaul branch (#2829)
* Beginnings of integration with Wikipedia client library. (#2642)

* Remove remaining unnecessary API version check.

* Roll up sleeves.

* Add and integrate the beginnings of app adapter.

* Remove vestigial event logging logic.

Event logging is no longer used in this app.

* Beginnings: remove StringUtils and associated redundancies.

* Remove redundant capitalize() method.

* Remove redundant urlEncode() method.

* Remove redundant (and incomplete) language lists.

* Remove redundant usages of SimpleDateFormat.

* Remove redundant json type adapter.

* Remove redundant MW error model classes.

* Rip out redundant MW model classes.

* Pass SessionManager into AppAdapter instead of injecting.

* Wire up more of the AppAdapter.

* Remove redundant Gson initialization and type adapters.

* Rip out PageTitle.

This was being used in some slightly incorrect/unexpected ways.

* Don't need static WikiSite.

* Bump data client library version

* Bump library version and fix build

* Fix tests

* Fix build

* Fix media of the day

* With fixes in recently modified APIs
2019-04-02 08:35:22 +05:30
Vivek Maskara
de9611821b Fix version number for alpha builds (#2325) 2019-01-24 23:32:16 +05:30
Adam Jones
f04503bb3e Lint issues (#2114)
* Dangling Javadoc comments

* Replace for loop with foreach

* Explicit type can be replaced with <>

* Anonymous type can be replaced with lambda

* Lambda can be replaced with method reference

* Remove redundant methods

* Use capital L for long literals

* Remove unnecessary StringBuilder
2018-12-21 13:09:04 +02:00
Edward Savage
e8f4a286c5 Lambda usage simplifications (#1928)
* Replace anonymous type with lambda
* Use method reference
* Replace with expression lambda
2018-11-02 18:28:42 +00:00
Siddharth Vaish
911873379b Alignment of language selection dialog in About>Translate #1713 (#1776) 2018-08-02 19:14:56 +10:00
dlsrks1021
e8b2dd7163 remove unused imports (#1606) 2018-06-21 07:28:27 +09:00
Ujjwal Agrawal
693c37f2ec Updated share feature (#1474) 2018-05-04 12:56:13 +03:00
Mansi Agarwal
120130bfc7 Share feature (#1338)
* added share app feature in About

* added share app feature in About

* a small fix
2018-03-29 00:52:53 +05:30
Maanu449
1e80f68136 used CDATA 2018-03-27 18:10:39 +05:30
tanvidadu
1b1568d15e Added the functionality 2018-03-17 09:53:17 +05:30
tanvidadu
2e064c370a Alert Dialoge Implemented 2018-03-17 09:53:17 +05:30
tanvidadu
7e081799ed Languages token hashmap added 2018-03-17 09:52:27 +05:30
tanvidadu
a6a30e1e77 Fixed Merge conflict 2018-03-17 09:52:27 +05:30
tanvidadu
757a198c99 translate url added 2018-03-17 09:51:24 +05:30
Vivek Maskara
4219023740
Merge branch 'master' into privacyPolicy 2018-03-12 00:18:04 +05:30
Ujjwal Agrawal
ede8c76d45 Faqs added in About Activity (#1256)
* Faqs added in About Activity

* Added CDATA in strings

* removed cdata, added SpannableString
2018-03-11 13:28:26 +05:30
maskara
4ac8f88ec2 Fixes privacy policy link in Login page 2018-03-11 01:36:19 +05:30
Ayushi Negi
cfc1449615 Launch Rate Us Feature from AboutActivity (#1264)
* Launch Rate Us Feature from AboutActivity

Rate us feature is added in Utils, But it is never used/launched.

* Add LaunchRatings Method in AboutActivity

* Fix Package Name to enable rate us feature

The rate us feature was not working for the debug build type since getPackageName() was returning the fr.free.nrw.commons.debug. Use of this package name was leading to an error on google play.

* Replace getPackageName() with BuildConfig.class.getPackage().getName() in rateApp method of Utils.java
2018-03-07 06:44:51 +05:30
Hassan
8addd10ef8
update PR quality 2018-02-28 13:07:50 -05:00
Hassan
e49f13ff74
Merge branch 'master' into master 2018-02-28 08:44:03 -06:00
Ujjwal Agrawal
eeaa9a90ba
Merge branch 'master' into feat5 2018-02-27 12:17:29 +05:30
Ujjwal Agrawal
fc8b522ac4 Rate Us method added to Utils.java and called on AboutActivity.java 2018-02-27 12:04:04 +05:30
Ujjwal Agrawal
96173e26cf Changed Webviews to Custom Tabs in Nearby Places Dialog, AboutUsActivity (#1185)
* Changed Webviews to Custom Tabs in Nearby Places Dialog, AboutUsActivity

* Created method handleWebUrl in Utils.java
2018-02-25 00:27:49 +05:30
hismaeel
f9b99f9280 issue #1156 fix 2018-02-20 21:38:22 -05:00
Hassan
b03e67dcd6
Merge branch 'master' into master 2018-02-17 12:07:58 -06:00
hismaeel
5860825a09 Issue #1156 2018-02-17 11:02:35 -05:00
Manuel Lorenzo
304bf51f5f Fixing some lint issues for #171 2018-02-07 11:32:24 +01:00
Shradheya Thakre
9985e87b8a Used @OnClick Annotation 2018-01-21 15:48:54 +08:00
Shradheya Thakre
ca43dbcef1 Refactored function names 2018-01-21 15:36:36 +08:00
Shradheya Thakre
64271e6066 On click Methods added 2018-01-20 14:13:34 +08:00
prajgov
3d6c6e0301 added JavaDoc comments 2017-12-19 19:11:39 +05:30
Paul Hawke
02b5b9b680 Merge branch 'master' into dependency-injection 2017-11-24 22:30:08 -06:00
Ram Gudivada
3c9b325e58 Changed activity creation logic
- for home activity it will reuse existing activity from back stack and
  also clears all current activities
- for nearby, about and settings, it will use the existing activity from
  back stack
2017-11-20 21:37:10 -08:00
Michiyo Wellington-Oguri
10637f4bf2 Use string substitution to avoid translating trademarked text 2017-07-16 14:28:23 -07:00
maskara
a6bbc8a33b With NavigationBaseActivity implemented 2017-05-16 11:58:54 +02:00
maskara
09cd596ff6 Integrated navigation drawer in the contributions activity 2017-05-16 11:57:07 +02:00
Dinu Kumarasiri
8bf59d832f Tidy about screen 2017-05-15 12:21:32 +02:00
veyndan
ce1e293d87 Define a custom TextView that displays HTML 2017-04-14 15:02:33 +01:00
veyndan
b9eafa66b9 Add ActionBar to About screen 2017-04-13 17:40:10 +01:00
veyndan
0e3bd3c74a Use generated version name from BuildConfig 2017-03-24 03:13:44 +00:00
Josephine Lim
b64c77021b Merge pull request #451 from maskaravivek/credits
Add credits in about page
2017-03-21 22:11:44 +10:00
veyndan
7d4dc12f53 Rename BaseAppCompatActivity to BaseActivity 2017-03-20 21:14:56 +00:00
veyndan
8cc51c4dd9 Extend from AppCompatActivity instead of Activity 2017-03-20 21:14:22 +00:00
maskara
6b1484efe6 Add credits in about page 2017-03-21 01:22:04 +05:30
maskara
060750b050 Added support for butterknife library for view bindings 2017-03-21 00:04:32 +05:30
Neslihan
7e256175dc Move theme checkbox to settings activity 2017-03-18 01:49:19 +03:00
Neslihan
5147769405 Add BaseActivity and BaseAppcompatActivity 2017-03-15 18:20:59 +03:00
veyndan
fe42731ee6 Replace fully qualified names with imports 2017-03-02 14:39:08 +00:00
veyndan
c1bcd921e3 Add missing @Override annotations 2017-02-26 02:38:05 +00:00