├── .watchmanconfig
├── .gitattributes
├── .babelrc
├── android
├── app
│ ├── src
│ │ └── main
│ │ │ ├── res
│ │ │ ├── values
│ │ │ │ ├── strings.xml
│ │ │ │ └── styles.xml
│ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ └── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ ├── assets
│ │ │ └── fonts
│ │ │ │ ├── Entypo.ttf
│ │ │ │ ├── Zocial.ttf
│ │ │ │ ├── Ionicons.ttf
│ │ │ │ ├── Octicons.ttf
│ │ │ │ ├── EvilIcons.ttf
│ │ │ │ ├── FontAwesome.ttf
│ │ │ │ ├── Foundation.ttf
│ │ │ │ ├── MaterialIcons.ttf
│ │ │ │ └── SimpleLineIcons.ttf
│ │ │ ├── java
│ │ │ └── com
│ │ │ │ └── mastodon
│ │ │ │ ├── MainActivity.java
│ │ │ │ └── MainApplication.java
│ │ │ └── AndroidManifest.xml
│ ├── BUCK
│ ├── proguard-rules.pro
│ └── build.gradle
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── keystores
│ ├── debug.keystore.properties
│ └── BUCK
├── settings.gradle
├── build.gradle
├── gradle.properties
├── gradlew.bat
└── gradlew
├── .buckconfig
├── index.ios.js
├── index.android.js
├── README.md
├── src
├── reducers
│ ├── index.js
│ ├── tokens.js
│ └── credentials.js
├── features
│ ├── notifications
│ │ └── index.js
│ ├── login
│ │ ├── reducer.js
│ │ ├── index.js
│ │ └── actions.js
│ └── home
│ │ └── index.js
├── actions
│ └── credentials.js
├── root.js
└── containers
│ └── app.js
├── __tests__
├── index.ios.js
└── index.android.js
├── ios
├── Mastodon
│ ├── AppDelegate.h
│ ├── main.m
│ ├── Images.xcassets
│ │ └── AppIcon.appiconset
│ │ │ └── Contents.json
│ ├── AppDelegate.m
│ ├── Info.plist
│ └── Base.lproj
│ │ └── LaunchScreen.xib
├── MastodonTests
│ ├── Info.plist
│ └── MastodonTests.m
└── Mastodon.xcodeproj
│ ├── xcshareddata
│ └── xcschemes
│ │ └── Mastodon.xcscheme
│ └── project.pbxproj
├── .gitignore
├── package.json
└── .flowconfig
/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.pbxproj -text
2 |
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["react-native"]
3 | }
--------------------------------------------------------------------------------
/android/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Mastodon
3 |
4 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Entypo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/Entypo.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Zocial.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/Zocial.ttf
--------------------------------------------------------------------------------
/.buckconfig:
--------------------------------------------------------------------------------
1 |
2 | [android]
3 | target = Google Inc.:Google APIs:23
4 |
5 | [maven_repositories]
6 | central = https://repo1.maven.org/maven2
7 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Ionicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/Ionicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Octicons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/Octicons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/EvilIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/EvilIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/FontAwesome.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/FontAwesome.ttf
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/Foundation.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/Foundation.ttf
--------------------------------------------------------------------------------
/index.ios.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native'
2 | import Root from './src/root'
3 |
4 | AppRegistry.registerComponent('Mastodon', () => Root);
5 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/MaterialIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/MaterialIcons.ttf
--------------------------------------------------------------------------------
/index.android.js:
--------------------------------------------------------------------------------
1 | import { AppRegistry } from 'react-native'
2 | import Root from './src/root'
3 |
4 | AppRegistry.registerComponent('Mastodon', () => Root);
5 |
--------------------------------------------------------------------------------
/android/app/src/main/assets/fonts/SimpleLineIcons.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/assets/fonts/SimpleLineIcons.ttf
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/mastodon/mastodon-native/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/android/keystores/debug.keystore.properties:
--------------------------------------------------------------------------------
1 | key.store=debug.keystore
2 | key.alias=androiddebugkey
3 | key.store.password=android
4 | key.alias.password=android
5 |
--------------------------------------------------------------------------------
/android/keystores/BUCK:
--------------------------------------------------------------------------------
1 | keystore(
2 | name = 'debug',
3 | store = 'debug.keystore',
4 | properties = 'debug.keystore.properties',
5 | visibility = [
6 | 'PUBLIC',
7 | ],
8 | )
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Mastodon Native
2 |
3 | The beginnings of what will hopefully become a mobile app (Android and iOS) for Mastodon, built using [React Native](https://facebook.github.io/react-native/)
4 |
5 | Contributions welcome.
6 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'Mastodon'
2 | include ':react-native-vector-icons'
3 | project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
4 |
5 | include ':app'
6 |
--------------------------------------------------------------------------------
/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6 |
--------------------------------------------------------------------------------
/src/reducers/index.js:
--------------------------------------------------------------------------------
1 | import { combineReducers } from 'redux-immutable'
2 |
3 | import credentials from './credentials'
4 | import tokens from './tokens'
5 | import login from '../features/login/reducer'
6 |
7 | export default combineReducers({
8 | credentials,
9 | tokens,
10 | login,
11 | })
12 |
--------------------------------------------------------------------------------
/__tests__/index.ios.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.ios.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/__tests__/index.android.js:
--------------------------------------------------------------------------------
1 | import 'react-native';
2 | import React from 'react';
3 | import Index from '../index.android.js';
4 |
5 | // Note: test renderer must be required after react-native.
6 | import renderer from 'react-test-renderer';
7 |
8 | it('renders correctly', () => {
9 | const tree = renderer.create(
10 |
11 | );
12 | });
13 |
--------------------------------------------------------------------------------
/src/features/notifications/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { View, Text } from 'react-native'
3 |
4 | const Notifications = React.createClass({
5 | render () {
6 | return (
7 |
8 | This is notifications
9 |
10 | )
11 | }
12 | })
13 |
14 | export default Notifications
15 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/mastodon/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.mastodon;
2 |
3 | import com.facebook.react.ReactActivity;
4 |
5 | public class MainActivity extends ReactActivity {
6 |
7 | /**
8 | * Returns the name of the main component registered from JavaScript.
9 | * This is used to schedule rendering of the component.
10 | */
11 | @Override
12 | protected String getMainComponentName() {
13 | return "Mastodon";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/reducers/tokens.js:
--------------------------------------------------------------------------------
1 | import Immutable from 'immutable'
2 |
3 | import { CREDENTIALS_TOKEN_SET } from '../actions/credentials'
4 |
5 | const initialState = Immutable.List()
6 |
7 | export default function (state = initialState, action) {
8 | switch(action.type) {
9 | case CREDENTIALS_TOKEN_SET:
10 | return state.push(Immutable.Map({
11 | domain: action.domain,
12 | token: action.token
13 | }))
14 | default:
15 | return state
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/actions/credentials.js:
--------------------------------------------------------------------------------
1 | export const CREDENTIALS_SET = 'CREDENTIALS_SET'
2 | export const CREDENTIALS_TOKEN_SET = 'CREDENTIALS_TOKEN_SET'
3 |
4 | export function setCredentials (domain, clientId, clientSecret) {
5 | return {
6 | type: CREDENTIALS_SET,
7 | domain,
8 | clientId,
9 | clientSecret
10 | }
11 | }
12 |
13 | export function setCredentialsToken(domain, token) {
14 | return {
15 | type: CREDENTIALS_TOKEN_SET,
16 | domain,
17 | token
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/reducers/credentials.js:
--------------------------------------------------------------------------------
1 | import Immutable from 'immutable'
2 |
3 | import { CREDENTIALS_SET } from '../actions/credentials'
4 |
5 | const initialState = Immutable.Map()
6 |
7 | export default function (state = initialState, action) {
8 | switch(action.type) {
9 | case CREDENTIALS_SET:
10 | return state.set(action.domain, Immutable.Map({
11 | clientId: action.clientId,
12 | clientSecret: action.clientSecret
13 | }))
14 | default:
15 | return state
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/features/login/reducer.js:
--------------------------------------------------------------------------------
1 | import Immutable from 'immutable'
2 | import { LOGIN_CHANGE_ID, LOGIN_START } from './actions'
3 |
4 | const initialState = Immutable.Map({
5 | id: '',
6 | domain: null,
7 | })
8 |
9 | export default function (state = initialState, action) {
10 | switch(action.type) {
11 | case LOGIN_CHANGE_ID:
12 | return state.set('id', action.text)
13 | case LOGIN_START:
14 | return state.set('domain', action.domain)
15 | default:
16 | return state
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/ios/Mastodon/AppDelegate.h:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | @interface AppDelegate : UIResponder
13 |
14 | @property (nonatomic, strong) UIWindow *window;
15 |
16 | @end
17 |
--------------------------------------------------------------------------------
/ios/Mastodon/main.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 |
12 | #import "AppDelegate.h"
13 |
14 | int main(int argc, char * argv[]) {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # Xcode
6 | #
7 | build/
8 | *.pbxuser
9 | !default.pbxuser
10 | *.mode1v3
11 | !default.mode1v3
12 | *.mode2v3
13 | !default.mode2v3
14 | *.perspectivev3
15 | !default.perspectivev3
16 | xcuserdata
17 | *.xccheckout
18 | *.moved-aside
19 | DerivedData
20 | *.hmap
21 | *.ipa
22 | *.xcuserstate
23 | project.xcworkspace
24 |
25 | # Android/IntelliJ
26 | #
27 | build/
28 | .idea
29 | .gradle
30 | local.properties
31 | *.iml
32 |
33 | # node.js
34 | #
35 | node_modules/
36 | npm-debug.log
37 |
38 | # BUCK
39 | buck-out/
40 | \.buckd/
41 | android/app/libs
42 | *.keystore
43 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:1.3.1'
9 |
10 | // NOTE: Do not place your application dependencies here; they belong
11 | // in the individual module build.gradle files
12 | }
13 | }
14 |
15 | allprojects {
16 | repositories {
17 | mavenLocal()
18 | jcenter()
19 | maven {
20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21 | url "$rootDir/../node_modules/react-native/android"
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ios/Mastodon/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "29x29",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "40x40",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "40x40",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "60x60",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "60x60",
31 | "scale" : "3x"
32 | }
33 | ],
34 | "info" : {
35 | "version" : 1,
36 | "author" : "xcode"
37 | }
38 | }
--------------------------------------------------------------------------------
/ios/MastodonTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Mastodon",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "start": "node node_modules/react-native/local-cli/cli.js start",
7 | "test": "jest"
8 | },
9 | "dependencies": {
10 | "axios": "^0.15.3",
11 | "immutable": "^3.8.1",
12 | "react": "15.4.1",
13 | "react-native": "0.39.2",
14 | "react-native-router-flux": "^3.37.0",
15 | "react-native-vector-icons": "^3.0.0",
16 | "react-redux": "^5.0.1",
17 | "redux": "^3.6.0",
18 | "redux-immutable": "^3.0.9",
19 | "redux-storage": "^4.1.2",
20 | "redux-storage-engine-reactnativeasyncstorage": "^1.0.5",
21 | "redux-storage-merger-immutablejs": "^1.0.5",
22 | "redux-thunk": "^2.1.0"
23 | },
24 | "devDependencies": {
25 | "babel-jest": "18.0.0",
26 | "babel-preset-react-native": "1.9.1",
27 | "jest": "18.1.0",
28 | "react-test-renderer": "15.4.1"
29 | },
30 | "jest": {
31 | "preset": "react-native"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
19 |
20 | android.useDeprecatedNdk=true
21 |
--------------------------------------------------------------------------------
/src/root.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import { createStore, applyMiddleware } from 'redux'
3 | import { AsyncStorage } from 'react-native'
4 | import * as storage from 'redux-storage'
5 | import createEngine from 'redux-storage-engine-reactnativeasyncstorage'
6 | import merger from 'redux-storage-merger-immutablejs'
7 | import thunk from 'redux-thunk'
8 | import { Provider } from 'react-redux'
9 | import appReducer from './reducers'
10 | import App from './containers/app'
11 |
12 | const engine = createEngine('mastodon')
13 | const store = createStore(storage.reducer(appReducer, merger), applyMiddleware(thunk, storage.createMiddleware(engine)))
14 |
15 | const load = storage.createLoader(engine);
16 | load(store).then(newState => console.log('Loaded state:', newState));
17 |
18 | export default class Root extends Component {
19 | render () {
20 | return (
21 |
22 |
23 |
24 | )
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/features/home/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { View, Text, ActivityIndicator } from 'react-native'
3 | import { connect } from 'react-redux'
4 | import axios from 'axios'
5 |
6 | const mapStateToProps = state => ({
7 | accessor: state.get('tokens').last()
8 | })
9 |
10 | const Home = React.createClass({
11 | getInitialState () {
12 | return {
13 | account: null
14 | }
15 | },
16 |
17 | componentDidMount () {
18 | axios.get(`https://${this.props.accessor.get('domain')}/api/v1/accounts/verify_credentials`, {
19 | headers: {
20 | Authorization: `Bearer ${this.props.accessor.get('token')}`
21 | }
22 | }).then(response => {
23 | this.setState({ account: response.data })
24 | }).catch(error => {
25 | console.error(error)
26 | })
27 | },
28 |
29 | render () {
30 | const { account } = this.state
31 |
32 | if (account === null) {
33 | return
34 | }
35 |
36 | return (
37 |
38 | Hello {this.state.account.acct}
39 |
40 | )
41 | }
42 | })
43 |
44 | export default connect(mapStateToProps)(Home)
45 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/mastodon/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.mastodon;
2 |
3 | import android.app.Application;
4 | import android.util.Log;
5 |
6 | import com.facebook.react.ReactApplication;
7 | import com.oblador.vectoricons.VectorIconsPackage;
8 | import com.facebook.react.ReactInstanceManager;
9 | import com.facebook.react.ReactNativeHost;
10 | import com.facebook.react.ReactPackage;
11 | import com.facebook.react.shell.MainReactPackage;
12 | import com.facebook.soloader.SoLoader;
13 |
14 | import java.util.Arrays;
15 | import java.util.List;
16 |
17 | public class MainApplication extends Application implements ReactApplication {
18 |
19 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
20 | @Override
21 | protected boolean getUseDeveloperSupport() {
22 | return BuildConfig.DEBUG;
23 | }
24 |
25 | @Override
26 | protected List getPackages() {
27 | return Arrays.asList(
28 | new MainReactPackage(),
29 | new VectorIconsPackage()
30 | );
31 | }
32 | };
33 |
34 | @Override
35 | public ReactNativeHost getReactNativeHost() {
36 | return mReactNativeHost;
37 | }
38 |
39 | @Override
40 | public void onCreate() {
41 | super.onCreate();
42 | SoLoader.init(this, /* native exopackage */ false);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | ; We fork some components by platform
3 | .*/*[.]android.js
4 |
5 | ; Ignore "BUCK" generated dirs
6 | /\.buckd/
7 |
8 | ; Ignore unexpected extra "@providesModule"
9 | .*/node_modules/.*/node_modules/fbjs/.*
10 |
11 | ; Ignore duplicate module providers
12 | ; For RN Apps installed via npm, "Libraries" folder is inside
13 | ; "node_modules/react-native" but in the source repo it is in the root
14 | .*/Libraries/react-native/React.js
15 | .*/Libraries/react-native/ReactNative.js
16 |
17 | [include]
18 |
19 | [libs]
20 | node_modules/react-native/Libraries/react-native/react-native-interface.js
21 | node_modules/react-native/flow
22 | flow/
23 |
24 | [options]
25 | module.system=haste
26 |
27 | experimental.strict_type_args=true
28 |
29 | munge_underscores=true
30 |
31 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
32 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
33 |
34 | suppress_type=$FlowIssue
35 | suppress_type=$FlowFixMe
36 | suppress_type=$FixMe
37 |
38 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-5]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
39 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-5]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
40 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
41 |
42 | unsafe.enable_getters_and_setters=true
43 |
44 | [version]
45 | ^0.35.0
46 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
12 |
13 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/android/app/BUCK:
--------------------------------------------------------------------------------
1 | import re
2 |
3 | # To learn about Buck see [Docs](https://buckbuild.com/).
4 | # To run your application with Buck:
5 | # - install Buck
6 | # - `npm start` - to start the packager
7 | # - `cd android`
8 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
9 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
10 | # - `buck install -r android/app` - compile, install and run application
11 | #
12 |
13 | lib_deps = []
14 | for jarfile in glob(['libs/*.jar']):
15 | name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
16 | lib_deps.append(':' + name)
17 | prebuilt_jar(
18 | name = name,
19 | binary_jar = jarfile,
20 | )
21 |
22 | for aarfile in glob(['libs/*.aar']):
23 | name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
24 | lib_deps.append(':' + name)
25 | android_prebuilt_aar(
26 | name = name,
27 | aar = aarfile,
28 | )
29 |
30 | android_library(
31 | name = 'all-libs',
32 | exported_deps = lib_deps
33 | )
34 |
35 | android_library(
36 | name = 'app-code',
37 | srcs = glob([
38 | 'src/main/java/**/*.java',
39 | ]),
40 | deps = [
41 | ':all-libs',
42 | ':build_config',
43 | ':res',
44 | ],
45 | )
46 |
47 | android_build_config(
48 | name = 'build_config',
49 | package = 'com.mastodon',
50 | )
51 |
52 | android_resource(
53 | name = 'res',
54 | res = 'src/main/res',
55 | package = 'com.mastodon',
56 | )
57 |
58 | android_binary(
59 | name = 'app',
60 | package_type = 'debug',
61 | manifest = 'src/main/AndroidManifest.xml',
62 | keystore = '//android/keystores:debug',
63 | deps = [
64 | ':app-code',
65 | ],
66 | )
67 |
--------------------------------------------------------------------------------
/ios/Mastodon/AppDelegate.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import "AppDelegate.h"
11 |
12 | #import "RCTBundleURLProvider.h"
13 | #import "RCTRootView.h"
14 | #import "RCTLinkingManager.h"
15 |
16 |
17 | @implementation AppDelegate
18 |
19 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
20 | {
21 | NSURL *jsCodeLocation;
22 |
23 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
24 |
25 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
26 | moduleName:@"Mastodon"
27 | initialProperties:nil
28 | launchOptions:launchOptions];
29 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
30 |
31 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
32 | UIViewController *rootViewController = [UIViewController new];
33 | rootViewController.view = rootView;
34 | self.window.rootViewController = rootViewController;
35 | [self.window makeKeyAndVisible];
36 | return YES;
37 | }
38 |
39 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
40 | sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
41 | {
42 | return [RCTLinkingManager application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
43 | }
44 |
45 | @end
46 |
--------------------------------------------------------------------------------
/src/features/login/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { View, TextInput, Button, Linking } from 'react-native'
3 | import { connect } from 'react-redux'
4 | import { changeId, submit, getToken } from './actions'
5 | import { Actions } from 'react-native-router-flux'
6 |
7 | const mapStateToProps = state => ({
8 | id: state.getIn(['login', 'id']),
9 | loggedIn: state.get('tokens').size > 0
10 | })
11 |
12 | const mapDispatchToProps = dispatch => ({
13 | onChangeId (text) {
14 | dispatch(changeId(text))
15 | },
16 |
17 | onSubmit () {
18 | dispatch(submit())
19 | },
20 |
21 | onCallback (url) {
22 | dispatch(getToken(url))
23 | }
24 | })
25 |
26 | const Login = React.createClass({
27 | propTypes: {
28 | id: React.PropTypes.string,
29 | loggedIn: React.PropTypes.bool,
30 | onChangeId: React.PropTypes.func,
31 | onSubmit: React.PropTypes.func,
32 | onCallback: React.PropTypes.func
33 | },
34 |
35 | componentDidMount () {
36 | Linking.addEventListener('url', this._handleOpenURL)
37 | },
38 |
39 | componentWillUnmount () {
40 | Linking.removeEventListener('url', this._handleOpenURL)
41 | },
42 |
43 | _handleOpenURL (e) {
44 | this.props.onCallback(e.url)
45 | },
46 |
47 | componentWillReceiveProps (nextProps) {
48 | if (nextProps.loggedIn) {
49 | Actions.main()
50 | }
51 | },
52 |
53 | render () {
54 | const { id, onChangeId, onSubmit } = this.props;
55 |
56 | return (
57 |
58 |
67 |
68 |
72 |
73 | )
74 | },
75 | })
76 |
77 | export default connect(mapStateToProps, mapDispatchToProps)(Login)
78 |
--------------------------------------------------------------------------------
/src/containers/app.js:
--------------------------------------------------------------------------------
1 | import React, { Component } from 'react'
2 | import { StyleSheet, View, Text } from 'react-native'
3 | import { Scene, Router, ActionConst } from 'react-native-router-flux'
4 | import Login from '../features/login'
5 | import Home from '../features/home'
6 | import Notifications from '../features/notifications'
7 | import Icon from 'react-native-vector-icons/FontAwesome';
8 |
9 | const TabIcon = ({ selected, title, iconName, size }) => (
10 |
11 |
12 | {title}
13 |
14 | )
15 |
16 | const styles = StyleSheet.create({
17 | scene: {
18 | backgroundColor: '#282c37'
19 | },
20 |
21 | iconContainer: {
22 | borderTopWidth: StyleSheet.hairlineWidth * 4,
23 | borderTopColor: '#373b4a',
24 | flex: 1,
25 | alignItems: 'center',
26 | justifyContent: 'center'
27 | },
28 |
29 | iconContainerSelected: {
30 | borderTopColor: '#2b90d9'
31 | },
32 |
33 | bar: {
34 | backgroundColor: '#373b4a'
35 | }
36 | })
37 |
38 | export default class App extends Component {
39 | render () {
40 | return (
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | )
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/ios/MastodonTests/MastodonTests.m:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) 2015-present, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under the BSD-style license found in the
6 | * LICENSE file in the root directory of this source tree. An additional grant
7 | * of patent rights can be found in the PATENTS file in the same directory.
8 | */
9 |
10 | #import
11 | #import
12 |
13 | #import "RCTLog.h"
14 | #import "RCTRootView.h"
15 |
16 | #define TIMEOUT_SECONDS 600
17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
18 |
19 | @interface MastodonTests : XCTestCase
20 |
21 | @end
22 |
23 | @implementation MastodonTests
24 |
25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
26 | {
27 | if (test(view)) {
28 | return YES;
29 | }
30 | for (UIView *subview in [view subviews]) {
31 | if ([self findSubviewInView:subview matching:test]) {
32 | return YES;
33 | }
34 | }
35 | return NO;
36 | }
37 |
38 | - (void)testRendersWelcomeScreen
39 | {
40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
42 | BOOL foundElement = NO;
43 |
44 | __block NSString *redboxError = nil;
45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
46 | if (level >= RCTLogLevelError) {
47 | redboxError = message;
48 | }
49 | });
50 |
51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
54 |
55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) {
56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
57 | return YES;
58 | }
59 | return NO;
60 | }];
61 | }
62 |
63 | RCTSetLogFunction(RCTDefaultLogFunction);
64 |
65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
67 | }
68 |
69 |
70 | @end
71 |
--------------------------------------------------------------------------------
/ios/Mastodon/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 | CFBundleURLTypes
24 |
25 |
26 | CFBundleURLName
27 | com.mastodon
28 | CFBundleURLSchemes
29 |
30 | mastodon
31 |
32 |
33 |
34 | LSRequiresIPhoneOS
35 |
36 | UILaunchStoryboardName
37 | LaunchScreen
38 | UIRequiredDeviceCapabilities
39 |
40 | armv7
41 |
42 | UISupportedInterfaceOrientations
43 |
44 | UIInterfaceOrientationPortrait
45 | UIInterfaceOrientationLandscapeLeft
46 | UIInterfaceOrientationLandscapeRight
47 |
48 | UIViewControllerBasedStatusBarAppearance
49 |
50 | NSLocationWhenInUseUsageDescription
51 |
52 | NSAppTransportSecurity
53 |
54 | NSExceptionDomains
55 |
56 | localhost
57 |
58 | NSExceptionAllowsInsecureHTTPLoads
59 |
60 |
61 |
62 |
63 | UIAppFonts
64 |
65 | Entypo.ttf
66 | EvilIcons.ttf
67 | FontAwesome.ttf
68 | Foundation.ttf
69 | Ionicons.ttf
70 | MaterialIcons.ttf
71 | Octicons.ttf
72 | SimpleLineIcons.ttf
73 | Zocial.ttf
74 |
75 |
76 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
19 | # Disabling obfuscation is useful if you collect stack traces from production crashes
20 | # (unless you are using a system that supports de-obfuscate the stack traces).
21 | -dontobfuscate
22 |
23 | # React Native
24 |
25 | # Keep our interfaces so they can be used by other ProGuard rules.
26 | # See http://sourceforge.net/p/proguard/bugs/466/
27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
30 |
31 | # Do not strip any method/class that is annotated with @DoNotStrip
32 | -keep @com.facebook.proguard.annotations.DoNotStrip class *
33 | -keep @com.facebook.common.internal.DoNotStrip class *
34 | -keepclassmembers class * {
35 | @com.facebook.proguard.annotations.DoNotStrip *;
36 | @com.facebook.common.internal.DoNotStrip *;
37 | }
38 |
39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
40 | void set*(***);
41 | *** get*();
42 | }
43 |
44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; }
46 | -keepclassmembers,includedescriptorclasses class * { native ; }
47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; }
48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; }
49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; }
50 |
51 | -dontwarn com.facebook.react.**
52 |
53 | # okhttp
54 |
55 | -keepattributes Signature
56 | -keepattributes *Annotation*
57 | -keep class okhttp3.** { *; }
58 | -keep interface okhttp3.** { *; }
59 | -dontwarn okhttp3.**
60 |
61 | # okio
62 |
63 | -keep class sun.misc.Unsafe { *; }
64 | -dontwarn java.nio.file.*
65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
66 | -dontwarn okio.**
67 |
--------------------------------------------------------------------------------
/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/src/features/login/actions.js:
--------------------------------------------------------------------------------
1 | import { Linking, AsyncStorage } from 'react-native'
2 | import axios from 'axios'
3 |
4 | import { setCredentials, setCredentialsToken } from '../../actions/credentials'
5 |
6 | export const LOGIN_CHANGE_ID = 'LOGIN_CHANGE_ID'
7 | export const LOGIN_START = 'LOGIN_START'
8 |
9 | export function changeId (text) {
10 | return {
11 | type: LOGIN_CHANGE_ID,
12 | text
13 | }
14 | }
15 |
16 | export function startLogin (domain) {
17 | return {
18 | type: LOGIN_START,
19 | domain
20 | }
21 | }
22 |
23 | const openAuthorization = (domain, clientId, clientSecret) => {
24 | Linking.openURL(`https://${domain}/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent('mastodon://callback')}&scope=read+write+follow&response_type=code`)
25 | }
26 |
27 | export function submit () {
28 | return (dispatch, getState) => {
29 | const id = getState().getIn(['login', 'id']).trim()
30 | let [ username, domain ] = id.split('@')
31 |
32 | if (!domain) {
33 | domain = username;
34 | }
35 |
36 | let clientId = getState().getIn(['credentials', domain, 'clientId'], null)
37 | let clientSecret = getState().getIn(['credentials', domain, 'clientSecret'], null)
38 |
39 | console.log(domain, clientId, clientSecret)
40 | dispatch(startLogin(domain))
41 |
42 | if (clientId === null || clientSecret === null) {
43 | // Retrieve credentials from API
44 | console.log('Going to fetch new credentials')
45 |
46 | axios.post(`https://${domain}/api/v1/apps`, {
47 | client_name: 'Mastodon',
48 | redirect_uris: 'mastodon://callback',
49 | scopes: 'read write follow'
50 | }).then(response => {
51 | console.log(response.data)
52 |
53 | clientId = response.data.client_id
54 | clientSecret = response.data.client_secret
55 |
56 | dispatch(setCredentials(domain, clientId, clientSecret))
57 | openAuthorization(domain, clientId, clientSecret)
58 | }).catch(error => {
59 | console.error(error)
60 | })
61 | } else {
62 | console.log('Using existing credentials')
63 | openAuthorization(domain, clientId, clientSecret)
64 | }
65 | }
66 | }
67 |
68 | export function getToken (url) {
69 | return (dispatch, getState) => {
70 | const code = url.match(/\?code=([a-z0-9]+)/i)[1]
71 | const domain = getState().getIn(['login', 'domain'])
72 | const clientId = getState().getIn(['credentials', domain, 'clientId'], null)
73 | const clientSecret = getState().getIn(['credentials', domain, 'clientSecret'], null)
74 |
75 | axios.post(`https://${domain}/oauth/token`, {
76 | client_id: clientId,
77 | client_secret: clientSecret,
78 | code,
79 | grant_type: 'authorization_code',
80 | redirect_uri: 'mastodon://callback'
81 | }).then(response => {
82 | dispatch(setCredentialsToken(domain, response.data.access_token))
83 | }).catch(error => {
84 | console.error(error)
85 | })
86 | }
87 | }
88 |
--------------------------------------------------------------------------------
/ios/Mastodon/Base.lproj/LaunchScreen.xib:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
21 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
--------------------------------------------------------------------------------
/ios/Mastodon.xcodeproj/xcshareddata/xcschemes/Mastodon.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
47 |
53 |
54 |
55 |
56 |
57 |
63 |
64 |
65 |
66 |
75 |
77 |
83 |
84 |
85 |
86 |
87 |
88 |
94 |
96 |
102 |
103 |
104 |
105 |
107 |
108 |
111 |
112 |
113 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # For Cygwin, ensure paths are in UNIX format before anything is touched.
46 | if $cygwin ; then
47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
48 | fi
49 |
50 | # Attempt to set APP_HOME
51 | # Resolve links: $0 may be a link
52 | PRG="$0"
53 | # Need this for relative symlinks.
54 | while [ -h "$PRG" ] ; do
55 | ls=`ls -ld "$PRG"`
56 | link=`expr "$ls" : '.*-> \(.*\)$'`
57 | if expr "$link" : '/.*' > /dev/null; then
58 | PRG="$link"
59 | else
60 | PRG=`dirname "$PRG"`"/$link"
61 | fi
62 | done
63 | SAVED="`pwd`"
64 | cd "`dirname \"$PRG\"`/" >&-
65 | APP_HOME="`pwd -P`"
66 | cd "$SAVED" >&-
67 |
68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
69 |
70 | # Determine the Java command to use to start the JVM.
71 | if [ -n "$JAVA_HOME" ] ; then
72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
73 | # IBM's JDK on AIX uses strange locations for the executables
74 | JAVACMD="$JAVA_HOME/jre/sh/java"
75 | else
76 | JAVACMD="$JAVA_HOME/bin/java"
77 | fi
78 | if [ ! -x "$JAVACMD" ] ; then
79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
80 |
81 | Please set the JAVA_HOME variable in your environment to match the
82 | location of your Java installation."
83 | fi
84 | else
85 | JAVACMD="java"
86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
87 |
88 | Please set the JAVA_HOME variable in your environment to match the
89 | location of your Java installation."
90 | fi
91 |
92 | # Increase the maximum file descriptors if we can.
93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
94 | MAX_FD_LIMIT=`ulimit -H -n`
95 | if [ $? -eq 0 ] ; then
96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
97 | MAX_FD="$MAX_FD_LIMIT"
98 | fi
99 | ulimit -n $MAX_FD
100 | if [ $? -ne 0 ] ; then
101 | warn "Could not set maximum file descriptor limit: $MAX_FD"
102 | fi
103 | else
104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
105 | fi
106 | fi
107 |
108 | # For Darwin, add options to specify how the application appears in the dock
109 | if $darwin; then
110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
111 | fi
112 |
113 | # For Cygwin, switch paths to Windows format before running java
114 | if $cygwin ; then
115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
158 | function splitJvmOpts() {
159 | JVM_OPTS=("$@")
160 | }
161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
163 |
164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
165 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // whether to bundle JS and assets in debug mode
22 | * bundleInDebug: false,
23 | *
24 | * // whether to bundle JS and assets in release mode
25 | * bundleInRelease: true,
26 | *
27 | * // whether to bundle JS and assets in another build variant (if configured).
28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
29 | * // The configuration property can be in the following formats
30 | * // 'bundleIn${productFlavor}${buildType}'
31 | * // 'bundleIn${buildType}'
32 | * // bundleInFreeDebug: true,
33 | * // bundleInPaidRelease: true,
34 | * // bundleInBeta: true,
35 | *
36 | * // the root of your project, i.e. where "package.json" lives
37 | * root: "../../",
38 | *
39 | * // where to put the JS bundle asset in debug mode
40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
41 | *
42 | * // where to put the JS bundle asset in release mode
43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
44 | *
45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
46 | * // require('./image.png')), in debug mode
47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
48 | *
49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
50 | * // require('./image.png')), in release mode
51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
52 | *
53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
57 | * // for example, you might want to remove it from here.
58 | * inputExcludes: ["android/**", "ios/**"],
59 | *
60 | * // override which node gets called and with what additional arguments
61 | * nodeExecutableAndArgs: ["node"]
62 | *
63 | * // supply additional arguments to the packager
64 | * extraPackagerArgs: []
65 | * ]
66 | */
67 |
68 | apply from: "../../node_modules/react-native/react.gradle"
69 |
70 | /**
71 | * Set this to true to create two separate APKs instead of one:
72 | * - An APK that only works on ARM devices
73 | * - An APK that only works on x86 devices
74 | * The advantage is the size of the APK is reduced by about 4MB.
75 | * Upload all the APKs to the Play Store and people will download
76 | * the correct one based on the CPU architecture of their device.
77 | */
78 | def enableSeparateBuildPerCPUArchitecture = false
79 |
80 | /**
81 | * Run Proguard to shrink the Java bytecode in release builds.
82 | */
83 | def enableProguardInReleaseBuilds = false
84 |
85 | android {
86 | compileSdkVersion 23
87 | buildToolsVersion "23.0.1"
88 |
89 | defaultConfig {
90 | applicationId "com.mastodon"
91 | minSdkVersion 16
92 | targetSdkVersion 22
93 | versionCode 1
94 | versionName "1.0"
95 | ndk {
96 | abiFilters "armeabi-v7a", "x86"
97 | }
98 | }
99 | splits {
100 | abi {
101 | reset()
102 | enable enableSeparateBuildPerCPUArchitecture
103 | universalApk false // If true, also generate a universal APK
104 | include "armeabi-v7a", "x86"
105 | }
106 | }
107 | buildTypes {
108 | release {
109 | minifyEnabled enableProguardInReleaseBuilds
110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
111 | }
112 | }
113 | // applicationVariants are e.g. debug, release
114 | applicationVariants.all { variant ->
115 | variant.outputs.each { output ->
116 | // For each separate APK per architecture, set a unique version code as described here:
117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
118 | def versionCodes = ["armeabi-v7a":1, "x86":2]
119 | def abi = output.getFilter(OutputFile.ABI)
120 | if (abi != null) { // null for the universal-debug, universal-release variants
121 | output.versionCodeOverride =
122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
123 | }
124 | }
125 | }
126 | }
127 |
128 | dependencies {
129 | compile project(':react-native-vector-icons')
130 | compile fileTree(dir: "libs", include: ["*.jar"])
131 | compile "com.android.support:appcompat-v7:23.0.1"
132 | compile "com.facebook.react:react-native:+" // From node_modules
133 | }
134 |
135 | // Run this once to be able to run the application with BUCK
136 | // puts all compile dependencies into folder libs for BUCK to use
137 | task copyDownloadableDepsToLibs(type: Copy) {
138 | from configurations.compile
139 | into 'libs'
140 | }
141 |
142 | apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
143 |
--------------------------------------------------------------------------------
/ios/Mastodon.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15 | 00E356F31AD99517003FC87E /* MastodonTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* MastodonTests.m */; };
16 | 015C5278685A4ED195A2D5E9 /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B53939AAA620458FBAA766EF /* Ionicons.ttf */; };
17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; };
20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
26 | 272EDDC899FB41549D8AC54F /* libRNVectorIcons.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 51B6390CA46B4B73A83DA476 /* libRNVectorIcons.a */; };
27 | 3062C36443D34655B9D75D2B /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C9D926DC5014450FAEC7E291 /* FontAwesome.ttf */; };
28 | 32412C1BD548453BA4CB0795 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 980E729ED519499597C0CBF6 /* Entypo.ttf */; };
29 | 45D1664F2A294E1DA1995AE1 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F14D244CB944462DB7EB6D89 /* Foundation.ttf */; };
30 | 4D8D3C7DFC8F4249A4570A8A /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A8707B7BFFE247B2ACC4CC22 /* Zocial.ttf */; };
31 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
32 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
33 | A355D487FD8E4F369F0E85D7 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 3A2FB8662D014593B4564962 /* MaterialIcons.ttf */; };
34 | BBC03267D3ED437DA6DB4605 /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D3FBD86412674841A74E7658 /* Octicons.ttf */; };
35 | DEDAF621FA5F4F4CA2293D61 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A579844EAA044014B68005FB /* EvilIcons.ttf */; };
36 | FBDB3D2B32AE42A2BBEBF1FE /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 305876578A0842058A10B75F /* SimpleLineIcons.ttf */; };
37 | /* End PBXBuildFile section */
38 |
39 | /* Begin PBXContainerItemProxy section */
40 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = {
41 | isa = PBXContainerItemProxy;
42 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
43 | proxyType = 2;
44 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
45 | remoteInfo = RCTActionSheet;
46 | };
47 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = {
48 | isa = PBXContainerItemProxy;
49 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
50 | proxyType = 2;
51 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
52 | remoteInfo = RCTGeolocation;
53 | };
54 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = {
55 | isa = PBXContainerItemProxy;
56 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
57 | proxyType = 2;
58 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676;
59 | remoteInfo = RCTImage;
60 | };
61 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = {
62 | isa = PBXContainerItemProxy;
63 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
64 | proxyType = 2;
65 | remoteGlobalIDString = 58B511DB1A9E6C8500147676;
66 | remoteInfo = RCTNetwork;
67 | };
68 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = {
69 | isa = PBXContainerItemProxy;
70 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
71 | proxyType = 2;
72 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7;
73 | remoteInfo = RCTVibration;
74 | };
75 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
76 | isa = PBXContainerItemProxy;
77 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
78 | proxyType = 1;
79 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
80 | remoteInfo = Mastodon;
81 | };
82 | 074975FC1E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
83 | isa = PBXContainerItemProxy;
84 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
85 | proxyType = 2;
86 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D;
87 | remoteInfo = "RCTImage-tvOS";
88 | };
89 | 074976001E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
90 | isa = PBXContainerItemProxy;
91 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
92 | proxyType = 2;
93 | remoteGlobalIDString = 2D2A28471D9B043800D4039D;
94 | remoteInfo = "RCTLinking-tvOS";
95 | };
96 | 074976041E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
97 | isa = PBXContainerItemProxy;
98 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
99 | proxyType = 2;
100 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D;
101 | remoteInfo = "RCTNetwork-tvOS";
102 | };
103 | 074976081E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
104 | isa = PBXContainerItemProxy;
105 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
106 | proxyType = 2;
107 | remoteGlobalIDString = 2D2A28611D9B046600D4039D;
108 | remoteInfo = "RCTSettings-tvOS";
109 | };
110 | 0749760C1E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
111 | isa = PBXContainerItemProxy;
112 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
113 | proxyType = 2;
114 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D;
115 | remoteInfo = "RCTText-tvOS";
116 | };
117 | 074976111E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
118 | isa = PBXContainerItemProxy;
119 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
120 | proxyType = 2;
121 | remoteGlobalIDString = 2D2A28881D9B049200D4039D;
122 | remoteInfo = "RCTWebSocket-tvOS";
123 | };
124 | 074976151E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
125 | isa = PBXContainerItemProxy;
126 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
127 | proxyType = 2;
128 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D;
129 | remoteInfo = "React-tvOS";
130 | };
131 | 074976181E3E3CBA0031CF7A /* PBXContainerItemProxy */ = {
132 | isa = PBXContainerItemProxy;
133 | containerPortal = 8C40FCA90573430C926432E1 /* RNVectorIcons.xcodeproj */;
134 | proxyType = 2;
135 | remoteGlobalIDString = 5DBEB1501B18CEA900B34395;
136 | remoteInfo = RNVectorIcons;
137 | };
138 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = {
139 | isa = PBXContainerItemProxy;
140 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
141 | proxyType = 2;
142 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
143 | remoteInfo = RCTSettings;
144 | };
145 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = {
146 | isa = PBXContainerItemProxy;
147 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
148 | proxyType = 2;
149 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A;
150 | remoteInfo = RCTWebSocket;
151 | };
152 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = {
153 | isa = PBXContainerItemProxy;
154 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
155 | proxyType = 2;
156 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192;
157 | remoteInfo = React;
158 | };
159 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
160 | isa = PBXContainerItemProxy;
161 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
162 | proxyType = 2;
163 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
164 | remoteInfo = RCTAnimation;
165 | };
166 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
167 | isa = PBXContainerItemProxy;
168 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
169 | proxyType = 2;
170 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D;
171 | remoteInfo = "RCTAnimation-tvOS";
172 | };
173 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = {
174 | isa = PBXContainerItemProxy;
175 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
176 | proxyType = 2;
177 | remoteGlobalIDString = 134814201AA4EA6300B7C361;
178 | remoteInfo = RCTLinking;
179 | };
180 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = {
181 | isa = PBXContainerItemProxy;
182 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
183 | proxyType = 2;
184 | remoteGlobalIDString = 58B5119B1A9E6C1200147676;
185 | remoteInfo = RCTText;
186 | };
187 | /* End PBXContainerItemProxy section */
188 |
189 | /* Begin PBXFileReference section */
190 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; };
191 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; };
192 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; };
193 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; };
194 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; };
195 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; };
196 | 00E356EE1AD99517003FC87E /* MastodonTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MastodonTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
197 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
198 | 00E356F21AD99517003FC87E /* MastodonTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MastodonTests.m; sourceTree = ""; };
199 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; };
200 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; };
201 | 13B07F961A680F5B00A75B9A /* Mastodon.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Mastodon.app; sourceTree = BUILT_PRODUCTS_DIR; };
202 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Mastodon/AppDelegate.h; sourceTree = ""; };
203 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Mastodon/AppDelegate.m; sourceTree = ""; };
204 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; };
205 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Mastodon/Images.xcassets; sourceTree = ""; };
206 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Mastodon/Info.plist; sourceTree = ""; };
207 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Mastodon/main.m; sourceTree = ""; };
208 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; };
209 | 305876578A0842058A10B75F /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = SimpleLineIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; };
210 | 3A2FB8662D014593B4564962 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; };
211 | 51B6390CA46B4B73A83DA476 /* libRNVectorIcons.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNVectorIcons.a; sourceTree = ""; };
212 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; };
213 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; };
214 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; };
215 | 8C40FCA90573430C926432E1 /* RNVectorIcons.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNVectorIcons.xcodeproj; path = "../node_modules/react-native-vector-icons/RNVectorIcons.xcodeproj"; sourceTree = ""; };
216 | 980E729ED519499597C0CBF6 /* Entypo.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Entypo.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; };
217 | A579844EAA044014B68005FB /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; };
218 | A8707B7BFFE247B2ACC4CC22 /* Zocial.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Zocial.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; };
219 | B53939AAA620458FBAA766EF /* Ionicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Ionicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; };
220 | C9D926DC5014450FAEC7E291 /* FontAwesome.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = FontAwesome.ttf; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; };
221 | D3FBD86412674841A74E7658 /* Octicons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Octicons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; };
222 | F14D244CB944462DB7EB6D89 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; };
223 | /* End PBXFileReference section */
224 |
225 | /* Begin PBXFrameworksBuildPhase section */
226 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
227 | isa = PBXFrameworksBuildPhase;
228 | buildActionMask = 2147483647;
229 | files = (
230 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */,
231 | );
232 | runOnlyForDeploymentPostprocessing = 0;
233 | };
234 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
235 | isa = PBXFrameworksBuildPhase;
236 | buildActionMask = 2147483647;
237 | files = (
238 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */,
239 | 146834051AC3E58100842450 /* libReact.a in Frameworks */,
240 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */,
241 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */,
242 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */,
243 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */,
244 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */,
245 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */,
246 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
247 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
248 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
249 | 272EDDC899FB41549D8AC54F /* libRNVectorIcons.a in Frameworks */,
250 | );
251 | runOnlyForDeploymentPostprocessing = 0;
252 | };
253 | /* End PBXFrameworksBuildPhase section */
254 |
255 | /* Begin PBXGroup section */
256 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = {
257 | isa = PBXGroup;
258 | children = (
259 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */,
260 | );
261 | name = Products;
262 | sourceTree = "";
263 | };
264 | 00C302B61ABCB90400DB3ED1 /* Products */ = {
265 | isa = PBXGroup;
266 | children = (
267 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */,
268 | );
269 | name = Products;
270 | sourceTree = "";
271 | };
272 | 00C302BC1ABCB91800DB3ED1 /* Products */ = {
273 | isa = PBXGroup;
274 | children = (
275 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */,
276 | 074975FD1E3E3CBA0031CF7A /* libRCTImage-tvOS.a */,
277 | );
278 | name = Products;
279 | sourceTree = "";
280 | };
281 | 00C302D41ABCB9D200DB3ED1 /* Products */ = {
282 | isa = PBXGroup;
283 | children = (
284 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */,
285 | 074976051E3E3CBA0031CF7A /* libRCTNetwork-tvOS.a */,
286 | );
287 | name = Products;
288 | sourceTree = "";
289 | };
290 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = {
291 | isa = PBXGroup;
292 | children = (
293 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */,
294 | );
295 | name = Products;
296 | sourceTree = "";
297 | };
298 | 00E356EF1AD99517003FC87E /* MastodonTests */ = {
299 | isa = PBXGroup;
300 | children = (
301 | 00E356F21AD99517003FC87E /* MastodonTests.m */,
302 | 00E356F01AD99517003FC87E /* Supporting Files */,
303 | );
304 | path = MastodonTests;
305 | sourceTree = "";
306 | };
307 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
308 | isa = PBXGroup;
309 | children = (
310 | 00E356F11AD99517003FC87E /* Info.plist */,
311 | );
312 | name = "Supporting Files";
313 | sourceTree = "";
314 | };
315 | 074975F41E3E3CB90031CF7A /* Products */ = {
316 | isa = PBXGroup;
317 | children = (
318 | 074976191E3E3CBA0031CF7A /* libRNVectorIcons.a */,
319 | );
320 | name = Products;
321 | sourceTree = "";
322 | };
323 | 139105B71AF99BAD00B5F7CC /* Products */ = {
324 | isa = PBXGroup;
325 | children = (
326 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */,
327 | 074976091E3E3CBA0031CF7A /* libRCTSettings-tvOS.a */,
328 | );
329 | name = Products;
330 | sourceTree = "";
331 | };
332 | 139FDEE71B06529A00C62182 /* Products */ = {
333 | isa = PBXGroup;
334 | children = (
335 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */,
336 | 074976121E3E3CBA0031CF7A /* libRCTWebSocket-tvOS.a */,
337 | );
338 | name = Products;
339 | sourceTree = "";
340 | };
341 | 13B07FAE1A68108700A75B9A /* Mastodon */ = {
342 | isa = PBXGroup;
343 | children = (
344 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
345 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
346 | 13B07FB01A68108700A75B9A /* AppDelegate.m */,
347 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
348 | 13B07FB61A68108700A75B9A /* Info.plist */,
349 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
350 | 13B07FB71A68108700A75B9A /* main.m */,
351 | );
352 | name = Mastodon;
353 | sourceTree = "";
354 | };
355 | 146834001AC3E56700842450 /* Products */ = {
356 | isa = PBXGroup;
357 | children = (
358 | 146834041AC3E56700842450 /* libReact.a */,
359 | 074976161E3E3CBA0031CF7A /* libReact-tvOS.a */,
360 | );
361 | name = Products;
362 | sourceTree = "";
363 | };
364 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = {
365 | isa = PBXGroup;
366 | children = (
367 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */,
368 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */,
369 | );
370 | name = Products;
371 | sourceTree = "";
372 | };
373 | 78C398B11ACF4ADC00677621 /* Products */ = {
374 | isa = PBXGroup;
375 | children = (
376 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */,
377 | 074976011E3E3CBA0031CF7A /* libRCTLinking-tvOS.a */,
378 | );
379 | name = Products;
380 | sourceTree = "";
381 | };
382 | 822DEE48B7B74C2384A64C94 /* Resources */ = {
383 | isa = PBXGroup;
384 | children = (
385 | 980E729ED519499597C0CBF6 /* Entypo.ttf */,
386 | A579844EAA044014B68005FB /* EvilIcons.ttf */,
387 | C9D926DC5014450FAEC7E291 /* FontAwesome.ttf */,
388 | F14D244CB944462DB7EB6D89 /* Foundation.ttf */,
389 | B53939AAA620458FBAA766EF /* Ionicons.ttf */,
390 | 3A2FB8662D014593B4564962 /* MaterialIcons.ttf */,
391 | D3FBD86412674841A74E7658 /* Octicons.ttf */,
392 | 305876578A0842058A10B75F /* SimpleLineIcons.ttf */,
393 | A8707B7BFFE247B2ACC4CC22 /* Zocial.ttf */,
394 | );
395 | name = Resources;
396 | sourceTree = "";
397 | };
398 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
399 | isa = PBXGroup;
400 | children = (
401 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */,
402 | 146833FF1AC3E56700842450 /* React.xcodeproj */,
403 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */,
404 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */,
405 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */,
406 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */,
407 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */,
408 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */,
409 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
410 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
411 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
412 | 8C40FCA90573430C926432E1 /* RNVectorIcons.xcodeproj */,
413 | );
414 | name = Libraries;
415 | sourceTree = "";
416 | };
417 | 832341B11AAA6A8300B99B32 /* Products */ = {
418 | isa = PBXGroup;
419 | children = (
420 | 832341B51AAA6A8300B99B32 /* libRCTText.a */,
421 | 0749760D1E3E3CBA0031CF7A /* libRCTText-tvOS.a */,
422 | );
423 | name = Products;
424 | sourceTree = "";
425 | };
426 | 83CBB9F61A601CBA00E9B192 = {
427 | isa = PBXGroup;
428 | children = (
429 | 13B07FAE1A68108700A75B9A /* Mastodon */,
430 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
431 | 00E356EF1AD99517003FC87E /* MastodonTests */,
432 | 83CBBA001A601CBA00E9B192 /* Products */,
433 | 822DEE48B7B74C2384A64C94 /* Resources */,
434 | );
435 | indentWidth = 2;
436 | sourceTree = "";
437 | tabWidth = 2;
438 | };
439 | 83CBBA001A601CBA00E9B192 /* Products */ = {
440 | isa = PBXGroup;
441 | children = (
442 | 13B07F961A680F5B00A75B9A /* Mastodon.app */,
443 | 00E356EE1AD99517003FC87E /* MastodonTests.xctest */,
444 | );
445 | name = Products;
446 | sourceTree = "";
447 | };
448 | /* End PBXGroup section */
449 |
450 | /* Begin PBXNativeTarget section */
451 | 00E356ED1AD99517003FC87E /* MastodonTests */ = {
452 | isa = PBXNativeTarget;
453 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MastodonTests" */;
454 | buildPhases = (
455 | 00E356EA1AD99517003FC87E /* Sources */,
456 | 00E356EB1AD99517003FC87E /* Frameworks */,
457 | 00E356EC1AD99517003FC87E /* Resources */,
458 | );
459 | buildRules = (
460 | );
461 | dependencies = (
462 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
463 | );
464 | name = MastodonTests;
465 | productName = MastodonTests;
466 | productReference = 00E356EE1AD99517003FC87E /* MastodonTests.xctest */;
467 | productType = "com.apple.product-type.bundle.unit-test";
468 | };
469 | 13B07F861A680F5B00A75B9A /* Mastodon */ = {
470 | isa = PBXNativeTarget;
471 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Mastodon" */;
472 | buildPhases = (
473 | 13B07F871A680F5B00A75B9A /* Sources */,
474 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
475 | 13B07F8E1A680F5B00A75B9A /* Resources */,
476 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
477 | );
478 | buildRules = (
479 | );
480 | dependencies = (
481 | );
482 | name = Mastodon;
483 | productName = "Hello World";
484 | productReference = 13B07F961A680F5B00A75B9A /* Mastodon.app */;
485 | productType = "com.apple.product-type.application";
486 | };
487 | /* End PBXNativeTarget section */
488 |
489 | /* Begin PBXProject section */
490 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
491 | isa = PBXProject;
492 | attributes = {
493 | LastUpgradeCheck = 610;
494 | ORGANIZATIONNAME = Facebook;
495 | TargetAttributes = {
496 | 00E356ED1AD99517003FC87E = {
497 | CreatedOnToolsVersion = 6.2;
498 | TestTargetID = 13B07F861A680F5B00A75B9A;
499 | };
500 | };
501 | };
502 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Mastodon" */;
503 | compatibilityVersion = "Xcode 3.2";
504 | developmentRegion = English;
505 | hasScannedForEncodings = 0;
506 | knownRegions = (
507 | en,
508 | Base,
509 | );
510 | mainGroup = 83CBB9F61A601CBA00E9B192;
511 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
512 | projectDirPath = "";
513 | projectReferences = (
514 | {
515 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */;
516 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */;
517 | },
518 | {
519 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */;
520 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
521 | },
522 | {
523 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */;
524 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */;
525 | },
526 | {
527 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */;
528 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */;
529 | },
530 | {
531 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */;
532 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */;
533 | },
534 | {
535 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */;
536 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */;
537 | },
538 | {
539 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */;
540 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */;
541 | },
542 | {
543 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */;
544 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */;
545 | },
546 | {
547 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */;
548 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */;
549 | },
550 | {
551 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */;
552 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */;
553 | },
554 | {
555 | ProductGroup = 146834001AC3E56700842450 /* Products */;
556 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
557 | },
558 | {
559 | ProductGroup = 074975F41E3E3CB90031CF7A /* Products */;
560 | ProjectRef = 8C40FCA90573430C926432E1 /* RNVectorIcons.xcodeproj */;
561 | },
562 | );
563 | projectRoot = "";
564 | targets = (
565 | 13B07F861A680F5B00A75B9A /* Mastodon */,
566 | 00E356ED1AD99517003FC87E /* MastodonTests */,
567 | );
568 | };
569 | /* End PBXProject section */
570 |
571 | /* Begin PBXReferenceProxy section */
572 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = {
573 | isa = PBXReferenceProxy;
574 | fileType = archive.ar;
575 | path = libRCTActionSheet.a;
576 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */;
577 | sourceTree = BUILT_PRODUCTS_DIR;
578 | };
579 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = {
580 | isa = PBXReferenceProxy;
581 | fileType = archive.ar;
582 | path = libRCTGeolocation.a;
583 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */;
584 | sourceTree = BUILT_PRODUCTS_DIR;
585 | };
586 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = {
587 | isa = PBXReferenceProxy;
588 | fileType = archive.ar;
589 | path = libRCTImage.a;
590 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */;
591 | sourceTree = BUILT_PRODUCTS_DIR;
592 | };
593 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = {
594 | isa = PBXReferenceProxy;
595 | fileType = archive.ar;
596 | path = libRCTNetwork.a;
597 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */;
598 | sourceTree = BUILT_PRODUCTS_DIR;
599 | };
600 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = {
601 | isa = PBXReferenceProxy;
602 | fileType = archive.ar;
603 | path = libRCTVibration.a;
604 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */;
605 | sourceTree = BUILT_PRODUCTS_DIR;
606 | };
607 | 074975FD1E3E3CBA0031CF7A /* libRCTImage-tvOS.a */ = {
608 | isa = PBXReferenceProxy;
609 | fileType = archive.ar;
610 | path = "libRCTImage-tvOS.a";
611 | remoteRef = 074975FC1E3E3CBA0031CF7A /* PBXContainerItemProxy */;
612 | sourceTree = BUILT_PRODUCTS_DIR;
613 | };
614 | 074976011E3E3CBA0031CF7A /* libRCTLinking-tvOS.a */ = {
615 | isa = PBXReferenceProxy;
616 | fileType = archive.ar;
617 | path = "libRCTLinking-tvOS.a";
618 | remoteRef = 074976001E3E3CBA0031CF7A /* PBXContainerItemProxy */;
619 | sourceTree = BUILT_PRODUCTS_DIR;
620 | };
621 | 074976051E3E3CBA0031CF7A /* libRCTNetwork-tvOS.a */ = {
622 | isa = PBXReferenceProxy;
623 | fileType = archive.ar;
624 | path = "libRCTNetwork-tvOS.a";
625 | remoteRef = 074976041E3E3CBA0031CF7A /* PBXContainerItemProxy */;
626 | sourceTree = BUILT_PRODUCTS_DIR;
627 | };
628 | 074976091E3E3CBA0031CF7A /* libRCTSettings-tvOS.a */ = {
629 | isa = PBXReferenceProxy;
630 | fileType = archive.ar;
631 | path = "libRCTSettings-tvOS.a";
632 | remoteRef = 074976081E3E3CBA0031CF7A /* PBXContainerItemProxy */;
633 | sourceTree = BUILT_PRODUCTS_DIR;
634 | };
635 | 0749760D1E3E3CBA0031CF7A /* libRCTText-tvOS.a */ = {
636 | isa = PBXReferenceProxy;
637 | fileType = archive.ar;
638 | path = "libRCTText-tvOS.a";
639 | remoteRef = 0749760C1E3E3CBA0031CF7A /* PBXContainerItemProxy */;
640 | sourceTree = BUILT_PRODUCTS_DIR;
641 | };
642 | 074976121E3E3CBA0031CF7A /* libRCTWebSocket-tvOS.a */ = {
643 | isa = PBXReferenceProxy;
644 | fileType = archive.ar;
645 | path = "libRCTWebSocket-tvOS.a";
646 | remoteRef = 074976111E3E3CBA0031CF7A /* PBXContainerItemProxy */;
647 | sourceTree = BUILT_PRODUCTS_DIR;
648 | };
649 | 074976161E3E3CBA0031CF7A /* libReact-tvOS.a */ = {
650 | isa = PBXReferenceProxy;
651 | fileType = archive.ar;
652 | path = "libReact-tvOS.a";
653 | remoteRef = 074976151E3E3CBA0031CF7A /* PBXContainerItemProxy */;
654 | sourceTree = BUILT_PRODUCTS_DIR;
655 | };
656 | 074976191E3E3CBA0031CF7A /* libRNVectorIcons.a */ = {
657 | isa = PBXReferenceProxy;
658 | fileType = archive.ar;
659 | path = libRNVectorIcons.a;
660 | remoteRef = 074976181E3E3CBA0031CF7A /* PBXContainerItemProxy */;
661 | sourceTree = BUILT_PRODUCTS_DIR;
662 | };
663 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = {
664 | isa = PBXReferenceProxy;
665 | fileType = archive.ar;
666 | path = libRCTSettings.a;
667 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */;
668 | sourceTree = BUILT_PRODUCTS_DIR;
669 | };
670 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = {
671 | isa = PBXReferenceProxy;
672 | fileType = archive.ar;
673 | path = libRCTWebSocket.a;
674 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */;
675 | sourceTree = BUILT_PRODUCTS_DIR;
676 | };
677 | 146834041AC3E56700842450 /* libReact.a */ = {
678 | isa = PBXReferenceProxy;
679 | fileType = archive.ar;
680 | path = libReact.a;
681 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */;
682 | sourceTree = BUILT_PRODUCTS_DIR;
683 | };
684 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
685 | isa = PBXReferenceProxy;
686 | fileType = archive.ar;
687 | path = libRCTAnimation.a;
688 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
689 | sourceTree = BUILT_PRODUCTS_DIR;
690 | };
691 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = {
692 | isa = PBXReferenceProxy;
693 | fileType = archive.ar;
694 | path = "libRCTAnimation-tvOS.a";
695 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */;
696 | sourceTree = BUILT_PRODUCTS_DIR;
697 | };
698 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
699 | isa = PBXReferenceProxy;
700 | fileType = archive.ar;
701 | path = libRCTLinking.a;
702 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */;
703 | sourceTree = BUILT_PRODUCTS_DIR;
704 | };
705 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = {
706 | isa = PBXReferenceProxy;
707 | fileType = archive.ar;
708 | path = libRCTText.a;
709 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */;
710 | sourceTree = BUILT_PRODUCTS_DIR;
711 | };
712 | /* End PBXReferenceProxy section */
713 |
714 | /* Begin PBXResourcesBuildPhase section */
715 | 00E356EC1AD99517003FC87E /* Resources */ = {
716 | isa = PBXResourcesBuildPhase;
717 | buildActionMask = 2147483647;
718 | files = (
719 | );
720 | runOnlyForDeploymentPostprocessing = 0;
721 | };
722 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
723 | isa = PBXResourcesBuildPhase;
724 | buildActionMask = 2147483647;
725 | files = (
726 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
727 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
728 | 32412C1BD548453BA4CB0795 /* Entypo.ttf in Resources */,
729 | DEDAF621FA5F4F4CA2293D61 /* EvilIcons.ttf in Resources */,
730 | 3062C36443D34655B9D75D2B /* FontAwesome.ttf in Resources */,
731 | 45D1664F2A294E1DA1995AE1 /* Foundation.ttf in Resources */,
732 | 015C5278685A4ED195A2D5E9 /* Ionicons.ttf in Resources */,
733 | A355D487FD8E4F369F0E85D7 /* MaterialIcons.ttf in Resources */,
734 | BBC03267D3ED437DA6DB4605 /* Octicons.ttf in Resources */,
735 | FBDB3D2B32AE42A2BBEBF1FE /* SimpleLineIcons.ttf in Resources */,
736 | 4D8D3C7DFC8F4249A4570A8A /* Zocial.ttf in Resources */,
737 | );
738 | runOnlyForDeploymentPostprocessing = 0;
739 | };
740 | /* End PBXResourcesBuildPhase section */
741 |
742 | /* Begin PBXShellScriptBuildPhase section */
743 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
744 | isa = PBXShellScriptBuildPhase;
745 | buildActionMask = 2147483647;
746 | files = (
747 | );
748 | inputPaths = (
749 | );
750 | name = "Bundle React Native code and images";
751 | outputPaths = (
752 | );
753 | runOnlyForDeploymentPostprocessing = 0;
754 | shellPath = /bin/sh;
755 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh";
756 | };
757 | /* End PBXShellScriptBuildPhase section */
758 |
759 | /* Begin PBXSourcesBuildPhase section */
760 | 00E356EA1AD99517003FC87E /* Sources */ = {
761 | isa = PBXSourcesBuildPhase;
762 | buildActionMask = 2147483647;
763 | files = (
764 | 00E356F31AD99517003FC87E /* MastodonTests.m in Sources */,
765 | );
766 | runOnlyForDeploymentPostprocessing = 0;
767 | };
768 | 13B07F871A680F5B00A75B9A /* Sources */ = {
769 | isa = PBXSourcesBuildPhase;
770 | buildActionMask = 2147483647;
771 | files = (
772 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
773 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
774 | );
775 | runOnlyForDeploymentPostprocessing = 0;
776 | };
777 | /* End PBXSourcesBuildPhase section */
778 |
779 | /* Begin PBXTargetDependency section */
780 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
781 | isa = PBXTargetDependency;
782 | target = 13B07F861A680F5B00A75B9A /* Mastodon */;
783 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
784 | };
785 | /* End PBXTargetDependency section */
786 |
787 | /* Begin PBXVariantGroup section */
788 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = {
789 | isa = PBXVariantGroup;
790 | children = (
791 | 13B07FB21A68108700A75B9A /* Base */,
792 | );
793 | name = LaunchScreen.xib;
794 | path = Mastodon;
795 | sourceTree = "";
796 | };
797 | /* End PBXVariantGroup section */
798 |
799 | /* Begin XCBuildConfiguration section */
800 | 00E356F61AD99517003FC87E /* Debug */ = {
801 | isa = XCBuildConfiguration;
802 | buildSettings = {
803 | BUNDLE_LOADER = "$(TEST_HOST)";
804 | GCC_PREPROCESSOR_DEFINITIONS = (
805 | "DEBUG=1",
806 | "$(inherited)",
807 | );
808 | INFOPLIST_FILE = MastodonTests/Info.plist;
809 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
810 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
811 | LIBRARY_SEARCH_PATHS = (
812 | "$(inherited)",
813 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
814 | );
815 | PRODUCT_NAME = "$(TARGET_NAME)";
816 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mastodon.app/Mastodon";
817 | };
818 | name = Debug;
819 | };
820 | 00E356F71AD99517003FC87E /* Release */ = {
821 | isa = XCBuildConfiguration;
822 | buildSettings = {
823 | BUNDLE_LOADER = "$(TEST_HOST)";
824 | COPY_PHASE_STRIP = NO;
825 | INFOPLIST_FILE = MastodonTests/Info.plist;
826 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
827 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
828 | LIBRARY_SEARCH_PATHS = (
829 | "$(inherited)",
830 | "\"$(SRCROOT)/$(TARGET_NAME)\"",
831 | );
832 | PRODUCT_NAME = "$(TARGET_NAME)";
833 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Mastodon.app/Mastodon";
834 | };
835 | name = Release;
836 | };
837 | 13B07F941A680F5B00A75B9A /* Debug */ = {
838 | isa = XCBuildConfiguration;
839 | buildSettings = {
840 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
841 | CURRENT_PROJECT_VERSION = 1;
842 | DEAD_CODE_STRIPPING = NO;
843 | HEADER_SEARCH_PATHS = (
844 | "$(inherited)",
845 | "$(SRCROOT)/../node_modules/react-native/React/**",
846 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**",
847 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
848 | "$(SRCROOT)/../node_modules/react-native/Libraries/**",
849 | );
850 | INFOPLIST_FILE = Mastodon/Info.plist;
851 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
852 | OTHER_LDFLAGS = (
853 | "$(inherited)",
854 | "-ObjC",
855 | "-lc++",
856 | );
857 | PRODUCT_NAME = Mastodon;
858 | VERSIONING_SYSTEM = "apple-generic";
859 | };
860 | name = Debug;
861 | };
862 | 13B07F951A680F5B00A75B9A /* Release */ = {
863 | isa = XCBuildConfiguration;
864 | buildSettings = {
865 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
866 | CURRENT_PROJECT_VERSION = 1;
867 | HEADER_SEARCH_PATHS = (
868 | "$(inherited)",
869 | "$(SRCROOT)/../node_modules/react-native/React/**",
870 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**",
871 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
872 | "$(SRCROOT)/../node_modules/react-native/Libraries/**",
873 | );
874 | INFOPLIST_FILE = Mastodon/Info.plist;
875 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
876 | OTHER_LDFLAGS = (
877 | "$(inherited)",
878 | "-ObjC",
879 | "-lc++",
880 | );
881 | PRODUCT_NAME = Mastodon;
882 | VERSIONING_SYSTEM = "apple-generic";
883 | };
884 | name = Release;
885 | };
886 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
887 | isa = XCBuildConfiguration;
888 | buildSettings = {
889 | ALWAYS_SEARCH_USER_PATHS = NO;
890 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
891 | CLANG_CXX_LIBRARY = "libc++";
892 | CLANG_ENABLE_MODULES = YES;
893 | CLANG_ENABLE_OBJC_ARC = YES;
894 | CLANG_WARN_BOOL_CONVERSION = YES;
895 | CLANG_WARN_CONSTANT_CONVERSION = YES;
896 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
897 | CLANG_WARN_EMPTY_BODY = YES;
898 | CLANG_WARN_ENUM_CONVERSION = YES;
899 | CLANG_WARN_INT_CONVERSION = YES;
900 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
901 | CLANG_WARN_UNREACHABLE_CODE = YES;
902 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
903 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
904 | COPY_PHASE_STRIP = NO;
905 | ENABLE_STRICT_OBJC_MSGSEND = YES;
906 | GCC_C_LANGUAGE_STANDARD = gnu99;
907 | GCC_DYNAMIC_NO_PIC = NO;
908 | GCC_OPTIMIZATION_LEVEL = 0;
909 | GCC_PREPROCESSOR_DEFINITIONS = (
910 | "DEBUG=1",
911 | "$(inherited)",
912 | );
913 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
914 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
915 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
916 | GCC_WARN_UNDECLARED_SELECTOR = YES;
917 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
918 | GCC_WARN_UNUSED_FUNCTION = YES;
919 | GCC_WARN_UNUSED_VARIABLE = YES;
920 | HEADER_SEARCH_PATHS = (
921 | "$(inherited)",
922 | "$(SRCROOT)/../node_modules/react-native/React/**",
923 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**",
924 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
925 | );
926 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
927 | MTL_ENABLE_DEBUG_INFO = YES;
928 | ONLY_ACTIVE_ARCH = YES;
929 | SDKROOT = iphoneos;
930 | };
931 | name = Debug;
932 | };
933 | 83CBBA211A601CBA00E9B192 /* Release */ = {
934 | isa = XCBuildConfiguration;
935 | buildSettings = {
936 | ALWAYS_SEARCH_USER_PATHS = NO;
937 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
938 | CLANG_CXX_LIBRARY = "libc++";
939 | CLANG_ENABLE_MODULES = YES;
940 | CLANG_ENABLE_OBJC_ARC = YES;
941 | CLANG_WARN_BOOL_CONVERSION = YES;
942 | CLANG_WARN_CONSTANT_CONVERSION = YES;
943 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
944 | CLANG_WARN_EMPTY_BODY = YES;
945 | CLANG_WARN_ENUM_CONVERSION = YES;
946 | CLANG_WARN_INT_CONVERSION = YES;
947 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
948 | CLANG_WARN_UNREACHABLE_CODE = YES;
949 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
950 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
951 | COPY_PHASE_STRIP = YES;
952 | ENABLE_NS_ASSERTIONS = NO;
953 | ENABLE_STRICT_OBJC_MSGSEND = YES;
954 | GCC_C_LANGUAGE_STANDARD = gnu99;
955 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
956 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
957 | GCC_WARN_UNDECLARED_SELECTOR = YES;
958 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
959 | GCC_WARN_UNUSED_FUNCTION = YES;
960 | GCC_WARN_UNUSED_VARIABLE = YES;
961 | HEADER_SEARCH_PATHS = (
962 | "$(inherited)",
963 | "$(SRCROOT)/../node_modules/react-native/React/**",
964 | "$(SRCROOT)/../node_modules/react-native/ReactCommon/**",
965 | "$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
966 | );
967 | IPHONEOS_DEPLOYMENT_TARGET = 8.0;
968 | MTL_ENABLE_DEBUG_INFO = NO;
969 | SDKROOT = iphoneos;
970 | VALIDATE_PRODUCT = YES;
971 | };
972 | name = Release;
973 | };
974 | /* End XCBuildConfiguration section */
975 |
976 | /* Begin XCConfigurationList section */
977 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "MastodonTests" */ = {
978 | isa = XCConfigurationList;
979 | buildConfigurations = (
980 | 00E356F61AD99517003FC87E /* Debug */,
981 | 00E356F71AD99517003FC87E /* Release */,
982 | );
983 | defaultConfigurationIsVisible = 0;
984 | defaultConfigurationName = Release;
985 | };
986 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Mastodon" */ = {
987 | isa = XCConfigurationList;
988 | buildConfigurations = (
989 | 13B07F941A680F5B00A75B9A /* Debug */,
990 | 13B07F951A680F5B00A75B9A /* Release */,
991 | );
992 | defaultConfigurationIsVisible = 0;
993 | defaultConfigurationName = Release;
994 | };
995 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Mastodon" */ = {
996 | isa = XCConfigurationList;
997 | buildConfigurations = (
998 | 83CBBA201A601CBA00E9B192 /* Debug */,
999 | 83CBBA211A601CBA00E9B192 /* Release */,
1000 | );
1001 | defaultConfigurationIsVisible = 0;
1002 | defaultConfigurationName = Release;
1003 | };
1004 | /* End XCConfigurationList section */
1005 | };
1006 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
1007 | }
1008 |
--------------------------------------------------------------------------------