• Stars
    star
    2,914
  • Rank 14,912 (Top 0.4 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 10 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📱The official Wikipedia iOS app.

Wikipedia iOS

The official Wikipedia iOS app.

Wikipedia MIT license

Note: The latest main branch is set up to build with Xcode 14.2.0.

Building and Running

In the directory, run ./scripts/setup. Note: going to scripts directory and running setup will not work due to relative paths.

Running scripts/setup will setup your computer to build and run the app. The script assumes you have Xcode installed already. It will install homebrew, SwiftLint, and ClangFormat. It will also create a pre-commit hook that uses ClangFormat for linting Objective-C code.

After running scripts/setup, you should be able to open Wikipedia.xcodeproj and run the app on the iOS Simulator (using the Wikipedia scheme and target). If you encounter any issues, please don't hesitate to let us know via a bug report or messaging us on IRC in #wikimedia-mobile on Freenode.

Required Dependencies

If you'd rather install the development prerequisites yourself without our script:

  • Xcode - The easiest way to get Xcode is from the App Store, but you can also download it from developer.apple.com if you have an Apple ID registered with an Apple Developer account.
  • SwiftLint - We use this for linting Swift code.
  • ClangFormat - We use this for linting Objective-C code.

Contributing

Covered in the contributing document.

Development Guidelines

These are general guidelines rather than hard rules.

Coding Guidelines

Formatting

We use Xcode's default 4 space indentation and our .clang-format file with the pre-commit hook setup by scripts/setup. Where possible, our Swift code is automatically formatted by SwiftLint based on the rules defined in .swiftlint-autocorrect.yml.

Process and Code Review Norms

Covered in the process document.

Logging

When reading logs, note that the log levels are shortened to emoji.

  • 🗣️ Verbose
  • 💬 Debug
  • ℹ️ Info
  • ⚠️ Warning
  • 🚨 Error

Testing

The Wikipedia scheme is configured to execute the project's iOS unit tests, which can be run using the Cmd+U hotkey or the Product → Test menu bar action. In order for the tests to pass, the test device's language and region must be set to en-US in Settings → General → Language & Region. There is a ticket filed to update the tests to pass regardless of language and region.

Schemes and Targets

  • Wikipedia - Points to production servers.
  • Staging - Pushed to TestFlight as a separate app bundle, and has the ability to toggle different staging environments within the current property of Configuration:
    • An option of appsLabsForPCS will point to the Apps team's staging environment for page content.
    • An option of deploymentLabsForEventLogging will point to the Event Logging staging environment. It is for testing analytics events that the app sends to Event Logging.
    • An option of betaCluster will point to the MediaWiki beta cluster environment for most API calls. This is meant to be a more blanket environment setting, so if this value exists it will also force the beta cluster environment for page content on the article view as well as force the staging environment for event logging. This beta cluster environment is also where developers can test sandbox push notifications triggered across various wikis. This is selected by default.
  • Local Page Content Service and Announcements - used in Debug mode only, has the ability to toggle different local environments within the current property of Configuration:
    • An option of localPCS will point to a locally running mobileapps repository for page content. This is selected by default.
    • An option of localAnnouncements will point to a locally running wikifeeds repository for the announcements endpoint. This is selected by default.
    • All other endpoints will point to production.
  • RTL - Launches the app in an RTL locale using the -AppleLocale argument.
  • Experimental - For one off builds. Can point to whatever is needed for the given experiment. Pushed to TestFlight as a separate app bundle.
  • User Testing - For user testing. Has an alternate configuration so that it can be delivered ad hoc. Pushed to TestFlight as a separate app bundle.
  • WMF - Bundles up the app logic shared between the main app and the extensions (widgets, notifications).
  • Update Localizations - Covered in the localization document.
  • Update Languages - For adding new Wikipedia languages or updating language configurations. Covered in the languages document.
  • {{name}}Widget, {{name}}Notification, {{name}}Stickers - Extensions for widgets, notifications, and stickers.

Continuous Integration

Covered in the CI document.

Event Logging

Covered in the event logging document.

Web Development

The article view and several other components of the app rely on web components. Instructions for working on these components is covered in the web development document.

Contact Us

If you have any questions or comments, you can email us at mobile-ios-wikipedia[at]wikimedia dot org. We'll also gladly accept any bug reports.

More Repositories

1

mediawiki

🌻 The collaborative editing software that runs Wikipedia. Mirror from https://gerrit.wikimedia.org/g/mediawiki/core. See https://mediawiki.org/wiki/Developer_access for contributing.
PHP
3,606
star
2

apps-android-wikipedia

📱The official Wikipedia app for Android!
Kotlin
2,216
star
3

composer-merge-plugin

Merge one or more additional composer.json files at Composer runtime
PHP
890
star
4

jquery.i18n

🌐 jQuery based internationalization library
JavaScript
666
star
5

pywikibot

A Python library that interfaces with the MediaWiki API. This is a mirror from gerrit.wikimedia.org. Do not submit any patches here. See https://www.mediawiki.org/wiki/Developer_account for contributing.
Python
595
star
6

operations-puppet

Wikimedia Foundation operates some of the largest collaborative projects in the world. This is the Puppet repo for our servers. This repository is a mirror; see https://www.mediawiki.org/wiki/Developer_access for contributing.
Puppet
244
star
7

node-cssjanus

↔️ Convert CSS between left-to-right and right-to-left. Mirror of https://gerrit.wikimedia.org/g/mediawiki/libs/node-cssjanus/. Contribute via https://www.mediawiki.org/wiki/Developer_account.
JavaScript
198
star
8

VisualEditor

✏ Standalone rich HTML5 editor, based on ContentEditable. Mirror from https://gerrit.wikimedia.org/g/VisualEditor/VisualEditor. See https://mediawiki.org/wiki/Developer_access.
JavaScript
181
star
9

wikipedia-iphone

An obsolete version of the Wikipedia iPhone app. Please use the current version:
Objective-C
179
star
10

jquery.ime

jQuery based input methods library
JavaScript
162
star
11

mediawiki-api-demos

Demo apps and code snippets in Python, Javascript and PHP demonstrating how to use various modules of the MediaWiki Action API
JavaScript
144
star
12

html-metadata

MetaData html scraper and parser for Node.js (supports Promises and callback style)
JavaScript
137
star
13

phabricator-extensions-Sprint

Github mirror of "phabricator/extensions/Sprint" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
137
star
14

wikidata-query-rdf

Github mirror of "wikidata/query/rdf" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
136
star
15

mediawiki-services-parsoid

This is a mirror from https://gerrit.wikimedia.org/g/mediawiki/services/parsoid/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
136
star
16

mediawiki-extensions-Wikibase

🌐 The knowledge base software that drives Wikidata.org. Mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
122
star
17

WikimediaUI-Style-Guide

Wikimedia Design Style Guide with user interface focus, authored by Wikimedia Foundation Design team.
HTML
118
star
18

ores

🤖 A hosting service for 'revscoring' models.
Python
111
star
19

restbase

Distributed storage with REST API & dispatcher for backend services.
JavaScript
102
star
20

search-highlighter

Github mirror of "search/highlighter" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
95
star
21

revscoring

A generic, machine learning-based revision scoring system for MediaWiki
Python
89
star
22

less.php

Less.js ported to PHP.
JavaScript
80
star
23

operations-mediawiki-config

⚙️ Configuration for Wikimedia Foundation wikis. This is a mirror from https://gerrit.wikimedia.org/g/operations/mediawiki-config/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
HTML
78
star
24

mediawiki-extensions-VisualEditor

This is a mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/VisualEditor. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
77
star
25

jquery.uls

Universal Language Selector
JavaScript
74
star
26

banana-i18n

banana-i18n - Javascript Internationalization library
JavaScript
74
star
27

ws-export

A Wikimedia Toolforge tool for exporting ebooks from Wikisources.
PHP
73
star
28

wikidata-query-gui

Github mirror of "wikidata/query/gui" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
72
star
29

mediawiki-vagrant

A virtual MediaWiki development environment, built on Vagrant, VirtualBox, and Puppet. This is a mirror from https://gerrit.wikimedia.org.
Ruby
67
star
30

wikimedia.github.io

HTML
66
star
31

wikipedia-kaios

The official Wikipedia KaiOS app.
JavaScript
63
star
32

limn

A GUI Visualization Toolkit
HTML
62
star
33

analytics-wikistats2

Mirror from https://gerrit.wikimedia.org/g/analytics/wikistats2
JavaScript
60
star
34

mediawiki-extensions-MobileFrontend

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
59
star
35

oojs-ui

OOUI is a modern JavaScript UI library with strong cross-browser support. It is the standard library for MediaWiki and Wikipedia. This is a mirror from https://gerrit.wikimedia.org. Main website:
JavaScript
56
star
36

operations-software-varnish-varnishkafka

Varnish log collector with Apache Kafka integration. This is a mirror from https://gerrit.wikimedia.org/g/operations/software/varnish/varnishkafka. See https://www.mediawiki.org/wiki/Developer_access for contributing.
C
55
star
37

IPSet

PHP library to match IPs against CIDR specs. This is a mirror from https://gerrit.wikimedia.org/g/IPSet/. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
53
star
38

wikipedia-preview

JavaScript
51
star
39

mediawiki-php-excimer

Mirror from https://gerrit.wikimedia.org/g/mediawiki/php/excimer. See https://www.mediawiki.org/wiki/Developer_access for contributing.
C
50
star
40

search-extra

Github mirror of "search/extra" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Java
48
star
41

articlequality

A library for performing automatic detection of assessment classes of Wikipedia article text.
Python
46
star
42

WhoWroteThat

A Wikipedia gadget to a browser extension to display article contribution information. Powered by WikiWho.
JavaScript
46
star
43

mediawiki-ruby-api

Github mirror of "mediawiki/ruby/api" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Ruby
45
star
44

wvui

Wikimedia Vue UI (WVUI) – Wikimedia Foundation's Vue.js shared user-interface components for Wikipedia, MediaWiki, and beyond. Please file tasks for WVUI and Vue.js on Phabricator: https://w.wiki/3khS, https://w.wiki/Xbt. Mirror from https://gerrit.wikimedia.org/r/plugins/gitiles/wvui
45
star
45

mediawiki-containers

[ARCHIVED] See https://www.mediawiki.org/wiki/MediaWiki-Docker
Shell
44
star
46

design-codex

Codex is a toolkit for building user interfaces within the Wikimedia Design System. Codex contains design tokens, Vue 3 components and VitePress documentation site packages. This is a mirror from https://gerrit.wikimedia.org/g/design/codex/
TypeScript
43
star
47

mediawiki-extensions-Scribunto

Github mirror of MediaWiki extension Scribunto - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Lua
43
star
48

analytics-quarry-web

Github mirror of "analytics/quarry/web" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
43
star
49

mediawiki-extensions-Popups

GitHub mirror of MediaWiki extension Popups - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
41
star
50

operations-software-druid_exporter

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Python
39
star
51

mediawiki-extensions-CirrusSearch

🔍 Mirror of https://gerrit.wikimedia.org/g/mediawiki/extensions/CirrusSearch. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
39
star
52

performance-arc-lamp

🔥 Flame graphs and trace logs for PHP 7 in production.     Mirror from https://gerrit.wikimedia.org/g/performance/arc-lamp. See https://mediawiki.org/wiki/Developer_access for contributing.
Shell
39
star
53

AhoCorasick

A PHP implementation of the Aho-Corasick string search algorithm. Mirror from https://gerrit.wikimedia.org/g/AhoCorasick - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
37
star
54

labs-tools-intuition

Mirror of https://gerrit.wikimedia.org/g/labs/tools/intuition
PHP
36
star
55

mediawiki-extensions-Translate

🌐Github mirror of MediaWiki extension Translate - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
35
star
56

operations-puppet-kafka

Mirror of https://gerrit.wikimedia.org/g/operations/puppet/kafka See https://www.mediawiki.org/wiki/Developer_access for contributing
Puppet
35
star
57

WiktionaryMobile

Wiktionary on Mobile!
JavaScript
35
star
58

translatewiki

Github mirror of translatewiki - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
34
star
59

editquality

Supervised learning approach to determining the quality of edits in Wikipedia
Python
34
star
60

KafkaSSE

Kafka Consumer -> HTTP SSE
JavaScript
33
star
61

mediawiki-extensions-SyntaxHighlight_GeSHi

This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
33
star
62

mediawiki-tools-codesniffer

Github mirror of MediaWiki tool codesniffer - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
32
star
63

mediawiki-extensions

GitHub mirror of the mediawiki/extensions repository. Development happens at https://gerrit.wikimedia.org. Please see https://www.mediawiki.org/wiki/Developer_account if you wish to contribute.
Python
31
star
64

mediawiki-skins-Timeless

Github mirror of "mediawiki/skins/Timeless" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Less
30
star
65

operations-debs-pybal

Mirror of https://gerrit.wikimedia.org/g/operations/debs/pybal
Python
28
star
66

grunt-stylelint

Stylelint adapter for the Grunt task runner.
JavaScript
28
star
67

WikidataQueryServiceR

An R package for the Wikidata Query Service API
R
27
star
68

ifttt

[OBSOLETE] Replaced by https://gitlab.wikimedia.org/toolforge-repos/ifttt
Python
27
star
69

eslint-config-wikimedia

JavaScript style guide for Wikimedia.
JavaScript
26
star
70

eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
JavaScript
26
star
71

wikilabels

A generalized labeling service for MediaWiki
JavaScript
26
star
72

mediawiki-skins-MinervaNeue

Github mirror of "mediawiki/skins/MinervaNeue" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
26
star
73

mediawiki-extensions-Echo

🔔 Notifications for MediaWiki. Mirror from https://gerrit.wikimedia.org/g/mediawiki/extensions/Echo. See https://www.mediawiki.org/wiki/Developer_access for contributing.
PHP
25
star
74

mediawiki-extensions-AbuseFilter

Github mirror of MediaWiki extension AbuseFilter - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
25
star
75

mediawiki-extensions-Cargo

Github mirror of MediaWiki extension Cargo - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
25
star
76

integration-zuul-config

⚙️ This is a mirror from https://gerrit.wikimedia.org. See https://www.mediawiki.org/wiki/Developer_access for contributing.
24
star
77

mediawiki-tools-grunt-cssjanus

Mirror of https://gerrit.wikimedia.org/g/mediawiki/tools/grunt-cssjanus. See https://www.mediawiki.org/wiki/Developer_access for contributing.
JavaScript
24
star
78

WikiContrib

A tool for Wikimedia community members to visualize their technical contributions
JavaScript
23
star
79

mediawiki-tools-mwdumper

Github mirror of MediaWiki tool mwdumper - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
Java
23
star
80

mediawiki-tools-phan-SecurityCheckPlugin

Mirror of https://gerrit.wikimedia.org/g/mediawiki/tools/phan/SecurityCheckPlugin See https://www.mediawiki.org/wiki/Developer_access for contributing
PHP
23
star
81

cumin

An automation and orchestration framework — Mirror of https://gerrit.wikimedia.org/g/operations/software/cumin. To contribute see: https://wikitech.wikimedia.org/wiki/Cumin#How_to_contribute_to_Cumin
Python
23
star
82

jsonschema-tools

Tools to dereference and generated versioned JSONSchemas
JavaScript
22
star
83

analytics-kafkatee

Github mirror of "analytics/kafkatee" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
C
22
star
84

DeadlinkChecker

Code to determine if a link on the web is dead or alive
PHP
22
star
85

mediawiki-extensions-UniversalLanguageSelector

Github mirror of MediaWiki extension UniversalLanguageSelector - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
21
star
86

service-runner

Generic nodejs service supervisor
JavaScript
21
star
87

sentencex

A sentence segmentation library with wide language support optimized for speed and utility.
Python
20
star
88

fresh

🌱 Fresh environments.     Mirror of https://gerrit.wikimedia.org/g/fresh. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Shell
20
star
89

jquery.webfonts

jQuery based Webfonts library
JavaScript
20
star
90

mediawiki-extensions-Flow

💬 Github mirror of MediaWiki extension Flow - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
PHP
20
star
91

mediawiki-extensions-Math

Github mirror of MediaWiki extension Math - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
PHP
20
star
92

mediawiki-extensions-MultimediaViewer

Github mirror of MediaWiki extension MultimediaViewer - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
JavaScript
20
star
93

eventgate

Library and HTTP Service for validating JSONSchema events and producing them (to Kafka or elsewhere)
JavaScript
19
star
94

kraken

Wikimedia analytics data services platform.
Java
19
star
95

WLMMobile

DEPRECATED -- not for production use. Wiki Loves Monuments app for Android.
JavaScript
19
star
96

mediawiki-extensions-WikiEditor

Mirror of https://gerrit.wikimedia.org/g/mediawiki/extensions/WikiEditor
JavaScript
18
star
97

mediawiki-extensions-NavigationTiming

⏱ Github mirror of MediaWiki extension NavigationTiming - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
18
star
98

mediawiki-php-luasandbox

Mirror of https://gerrit.wikimedia.org/g/mediawiki/php/luasandbox See https://www.mediawiki.org/wiki/Developer_access for contributing
C
18
star
99

mediawiki-extensions-PageForms

Github mirror of MediaWiki extension PageForms - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)
JavaScript
18
star
100

operations-dns

Mirror of https://gerrit.wikimedia.org/g/operations/dns. See https://www.mediawiki.org/wiki/Developer_access for contributing.
Python
18
star