├── .buckconfig ├── .eslintrc ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── LICENSE ├── README.md ├── __tests__ └── App-test.tsx ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── elektropepi │ │ │ └── bootboi │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ └── fonts │ │ │ ├── AntDesign.ttf │ │ │ ├── Entypo.ttf │ │ │ ├── EvilIcons.ttf │ │ │ ├── Feather.ttf │ │ │ ├── FontAwesome.ttf │ │ │ ├── FontAwesome5_Brands.ttf │ │ │ ├── FontAwesome5_Regular.ttf │ │ │ ├── FontAwesome5_Solid.ttf │ │ │ ├── Fontisto.ttf │ │ │ ├── Foundation.ttf │ │ │ ├── Ionicons.ttf │ │ │ ├── MaterialCommunityIcons.ttf │ │ │ ├── MaterialIcons.ttf │ │ │ ├── Octicons.ttf │ │ │ ├── SimpleLineIcons.ttf │ │ │ └── Zocial.ttf │ │ ├── java │ │ └── com │ │ │ └── elektropepi │ │ │ └── bootboi │ │ │ ├── MainActivity.java │ │ │ ├── MainApplication.java │ │ │ ├── MyAppPackage.java │ │ │ ├── RemoteCommunicationModule.java │ │ │ └── generated │ │ │ └── BasePackageList.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── images ├── fdroid-badge.png ├── google-play-badge.png ├── screenshots_1.png └── screenshots_2.png ├── index.js ├── ios ├── BootBoi-tvOS │ └── Info.plist ├── BootBoi-tvOSTests │ └── Info.plist ├── BootBoi.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── BootBoi-tvOS.xcscheme │ │ └── BootBoi.xcscheme ├── BootBoi │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m ├── BootBoiTests │ ├── BootBoiTests.m │ └── Info.plist └── Podfile ├── metadata └── en-US │ ├── full_description.txt │ ├── images │ ├── icon.png │ └── phoneScreenshots │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ └── 4.png │ ├── short_description.txt │ └── title.txt ├── metro.config.js ├── package.json ├── src ├── Component │ ├── ColorPicker.tsx │ ├── IconPicker.tsx │ └── LargeButton.tsx ├── Connection │ ├── Connection.ts │ ├── ConnectionDetail.tsx │ ├── ConnectionEdit.tsx │ ├── ConnectionItem.tsx │ ├── ConnectionList.tsx │ └── ConnectionStoreHelper.ts └── Main.tsx ├── tsconfig.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "parserOptions": { 3 | "project": "./tsconfig.json" 4 | }, 5 | "extends": [ 6 | "@react-native-community" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /.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 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # Visual Studio Code 33 | # 34 | .vscode/ 35 | 36 | # node.js 37 | # 38 | node_modules/ 39 | npm-debug.log 40 | yarn-error.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | *.keystore 46 | !debug.keystore 47 | 48 | # fastlane 49 | # 50 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 51 | # screenshots whenever they are needed. 52 | # For more information about the recommended setup visit: 53 | # https://docs.fastlane.tools/best-practices/source-control/ 54 | 55 | */fastlane/report.xml 56 | */fastlane/Preview.html 57 | */fastlane/screenshots 58 | 59 | # Bundle artifact 60 | *.jsbundle 61 | 62 | # CocoaPods 63 | /ios/Pods/ 64 | 65 | # Custom 66 | /android/java_pid43178.hprof 67 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { 3 | Provider as PaperProvider, 4 | DefaultTheme as PaperTheme, 5 | } from 'react-native-paper'; 6 | import Main from './src/Main'; 7 | import { 8 | NavigationContainer, 9 | DefaultTheme as NavigationTheme, 10 | } from '@react-navigation/native'; 11 | 12 | export default function App() { 13 | return ( 14 | 15 | 16 |
17 | 18 | 19 | ); 20 | } 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![BootBoi Logo](android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png) 2 | 3 | [![BootBoi Screenshots](images/google-play-badge.png)](https://play.google.com/store/apps/details?id=com.elektropepi.bootboi) 4 | [![BootBoi Screenshots](images/fdroid-badge.png)](https://f-droid.org/packages/com.elektropepi.bootboi) 5 | 6 | # BootBoi 7 | Ever wanted to turn on your remote machine (laptop, Raspberry, NAS), but didn't want to leave the couch? Well I for sure 8 | understand this problem to the heart. But fear no more, as BootBoi is here to save you from the gruesome task of standing up 9 | and pushing a button. 10 | 11 | BootBoi features **remote power on / power off / reboot** for as many remote machines as you can imagine with the 12 | combined power of `ssh` and `Wake On Lan`. 13 | 14 | ![BootBoi Screenshots](images/screenshots_1.png) 15 | ![BootBoi Screenshots](images/screenshots_2.png) 16 | 17 | ## Preparing your Remote Machine 18 | - Before you can use BootBoi with your remote machines, you have to prepare them for **remote** rebooting and powering them on/off. 19 | ### Power On 20 | - To power a remote device on, BootBoi uses [Wake On Lan](https://en.wikipedia.org/wiki/Wake-on-LAN). 21 | - This needs to be enabled in the BIOS of the machine you want to power on, read more [here](https://www.lifewire.com/wake-on-lan-4149800). 22 | 23 | ### Power Off / Reboot 24 | - BootBoi uses [SSH](https://simple.wikipedia.org/wiki/Secure_Shell) to execute `whoami`, `poweroff` and `reboot` on the remote 25 | machine. 26 | - So make sure that 27 | 1. Those binaries are available and in `$PATH` 28 | 2. The SSH user has `sudo` access to `whoami`, `poweroff` and `reboot` 29 | - Either by allowing the user sudo access only to those binaries via the [sudoers file](https://linux.die.net/man/5/sudoers) (recommended) 30 | - E.g. `echo "my_ssh_user ALL=(ALL) /sbin/reboot,/sbin/poweroff,/usr/bin/whoami" >> /etc/local/sudoers` 31 | - Or by using `root` as SSH user in BootBoi 32 | 33 | ## Release 34 | ### Google Play 35 | - Setup gradle and keystore for release: Follow https://reactnative.dev/docs/signed-apk-android 36 | - `cd android` and `./gradlew bundleRelease` 37 | - Change `BOOTBOI_UPLOAD_STORE_PASSWORD` and `BOOTBOI_UPLOAD_KEY_PASSWORD` in `android/gradle.properties` accordingly 38 | - To test the release, run `npx react-native run-android --variant=release`, it will create a release apk to `android/app/build/outputs/apk/release/app-release.apk` 39 | 40 | ## Development 41 | ### Remote Communication Module 42 | - BootBoi uses this [Remote Communication Module](https://github.com/BootBoi/remote-communication) to use Java APIs for 43 | rebooting and powering on/off. 44 | 45 | ### Environment 46 | - `yarn start` to start the development server 47 | - reload with `r` 48 | - `yarn android` to build the android app (dev server needs to be running), only needed when 49 | dependencies in package.json or native source changes 50 | - If you get `Could not initialize class org.codehaus.groovy.reflection.ReflectionCache`: Need to lower JDK version (tested with JDK 11) 51 | -------------------------------------------------------------------------------- /__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.elektropepi.bootboi", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.elektropepi.bootboi", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply from: '../../node_modules/react-native-unimodules/gradle.groovy' 3 | 4 | import com.android.build.OutputFile 5 | 6 | /** 7 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 8 | * and bundleReleaseJsAndAssets). 9 | * These basically call `react-native bundle` with the correct arguments during the Android build 10 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 11 | * bundle directly from the development server. Below you can see all the possible configurations 12 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 13 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 14 | * 15 | * project.ext.react = [ 16 | * // the name of the generated asset file containing your JS bundle 17 | * bundleAssetName: "index.android.bundle", 18 | * 19 | * // the entry file for bundle generation. If none specified and 20 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 21 | * // default. Can be overridden with ENTRY_FILE environment variable. 22 | * entryFile: "index.android.js", 23 | * 24 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 25 | * bundleCommand: "ram-bundle", 26 | * 27 | * // whether to bundle JS and assets in debug mode 28 | * bundleInDebug: false, 29 | * 30 | * // whether to bundle JS and assets in release mode 31 | * bundleInRelease: true, 32 | * 33 | * // whether to bundle JS and assets in another build variant (if configured). 34 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 35 | * // The configuration property can be in the following formats 36 | * // 'bundleIn${productFlavor}${buildType}' 37 | * // 'bundleIn${buildType}' 38 | * // bundleInFreeDebug: true, 39 | * // bundleInPaidRelease: true, 40 | * // bundleInBeta: true, 41 | * 42 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 43 | * // for example: to disable dev mode in the staging build type (if configured) 44 | * devDisabledInStaging: true, 45 | * // The configuration property can be in the following formats 46 | * // 'devDisabledIn${productFlavor}${buildType}' 47 | * // 'devDisabledIn${buildType}' 48 | * 49 | * // the root of your project, i.e. where "package.json" lives 50 | * root: "../../", 51 | * 52 | * // where to put the JS bundle asset in debug mode 53 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 54 | * 55 | * // where to put the JS bundle asset in release mode 56 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 57 | * 58 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 59 | * // require('./image.png')), in debug mode 60 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 61 | * 62 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 63 | * // require('./image.png')), in release mode 64 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 65 | * 66 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 67 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 68 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 69 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 70 | * // for example, you might want to remove it from here. 71 | * inputExcludes: ["android/**", "ios/**"], 72 | * 73 | * // override which node gets called and with what additional arguments 74 | * nodeExecutableAndArgs: ["node"], 75 | * 76 | * // supply additional arguments to the packager 77 | * extraPackagerArgs: [] 78 | * ] 79 | */ 80 | 81 | project.ext.react = [ 82 | enableHermes: false, // clean and rebuild if changing 83 | ] 84 | 85 | apply from: "../../node_modules/react-native/react.gradle" 86 | 87 | /** 88 | * Set this to true to create two separate APKs instead of one: 89 | * - An APK that only works on ARM devices 90 | * - An APK that only works on x86 devices 91 | * The advantage is the size of the APK is reduced by about 4MB. 92 | * Upload all the APKs to the Play Store and people will download 93 | * the correct one based on the CPU architecture of their device. 94 | */ 95 | def enableSeparateBuildPerCPUArchitecture = false 96 | 97 | /** 98 | * Run Proguard to shrink the Java bytecode in release builds. 99 | */ 100 | def enableProguardInReleaseBuilds = false 101 | 102 | /** 103 | * The preferred build flavor of JavaScriptCore. 104 | * 105 | * For example, to use the international variant, you can use: 106 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 107 | * 108 | * The international variant includes ICU i18n library and necessary data 109 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 110 | * give correct results when using with locales other than en-US. Note that 111 | * this variant is about 6MiB larger per architecture than default. 112 | */ 113 | def jscFlavor = 'org.webkit:android-jsc:+' 114 | 115 | /** 116 | * Whether to enable the Hermes VM. 117 | * 118 | * This should be set on project.ext.react and mirrored here. If it is not set 119 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 120 | * and the benefits of using Hermes will therefore be sharply reduced. 121 | */ 122 | def enableHermes = project.ext.react.get("enableHermes", false); 123 | 124 | android { 125 | compileSdkVersion rootProject.ext.compileSdkVersion 126 | 127 | compileOptions { 128 | sourceCompatibility JavaVersion.VERSION_1_8 129 | targetCompatibility JavaVersion.VERSION_1_8 130 | } 131 | 132 | defaultConfig { 133 | applicationId "com.elektropepi.bootboi" 134 | minSdkVersion rootProject.ext.minSdkVersion 135 | targetSdkVersion rootProject.ext.targetSdkVersion 136 | versionCode 11 137 | versionName "1.1" 138 | } 139 | signingConfigs { 140 | release { 141 | if (project.hasProperty('BOOTBOI_UPLOAD_STORE_FILE')) { 142 | storeFile file(BOOTBOI_UPLOAD_STORE_FILE) 143 | storePassword BOOTBOI_UPLOAD_STORE_PASSWORD 144 | keyAlias BOOTBOI_UPLOAD_KEY_ALIAS 145 | keyPassword BOOTBOI_UPLOAD_KEY_PASSWORD 146 | } 147 | } 148 | } 149 | splits { 150 | abi { 151 | reset() 152 | enable enableSeparateBuildPerCPUArchitecture 153 | universalApk false // If true, also generate a universal APK 154 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 155 | } 156 | } 157 | signingConfigs { 158 | debug { 159 | storeFile file('debug.keystore') 160 | storePassword 'android' 161 | keyAlias 'androiddebugkey' 162 | keyPassword 'android' 163 | } 164 | } 165 | buildTypes { 166 | debug { 167 | signingConfig signingConfigs.debug 168 | } 169 | release { 170 | signingConfig signingConfigs.release 171 | } 172 | } 173 | 174 | // applicationVariants are e.g. debug, release 175 | applicationVariants.all { variant -> 176 | variant.outputs.each { output -> 177 | // For each separate APK per architecture, set a unique version code as described here: 178 | // https://developer.android.com/studio/build/configure-apk-splits.html 179 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 180 | def abi = output.getFilter(OutputFile.ABI) 181 | if (abi != null) { // null for the universal-debug, universal-release variants 182 | output.versionCodeOverride = 183 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 184 | } 185 | 186 | } 187 | } 188 | } 189 | 190 | dependencies { 191 | implementation fileTree(dir: "libs", include: ["*.jar"]) 192 | //noinspection GradleDynamicVersion 193 | implementation "com.facebook.react:react-native:+" // From node_modules 194 | implementation 'com.github.bootboi:remote-communication:master-SNAPSHOT' 195 | 196 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0" 197 | 198 | addUnimodulesDependencies() 199 | 200 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 201 | exclude group:'com.facebook.fbjni' 202 | } 203 | 204 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 205 | exclude group:'com.facebook.flipper' 206 | exclude group:'com.squareup.okhttp3', module:'okhttp' 207 | } 208 | 209 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 210 | exclude group:'com.facebook.flipper' 211 | } 212 | 213 | if (enableHermes) { 214 | def hermesPath = "../../node_modules/hermes-engine/android/"; 215 | debugImplementation files(hermesPath + "hermes-debug.aar") 216 | releaseImplementation files(hermesPath + "hermes-release.aar") 217 | } else { 218 | implementation jscFlavor 219 | } 220 | } 221 | 222 | // Run this once to be able to run the application with BUCK 223 | // puts all compile dependencies into folder libs for BUCK to use 224 | task copyDownloadableDepsToLibs(type: Copy) { 225 | from configurations.compile 226 | into 'libs' 227 | } 228 | 229 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 230 | 231 | configurations.all { 232 | resolutionStrategy.cacheChangingModulesFor 0, 'seconds' 233 | } 234 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/elektropepi/bootboi/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.elektropepi.bootboi; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/AntDesign.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/AntDesign.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Entypo.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Entypo.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/EvilIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/EvilIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Feather.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Feather.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/FontAwesome.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/FontAwesome5_Brands.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/FontAwesome5_Regular.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/FontAwesome5_Solid.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Fontisto.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Fontisto.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Foundation.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Foundation.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Ionicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/MaterialCommunityIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/MaterialIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/MaterialIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Octicons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/SimpleLineIcons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/SimpleLineIcons.ttf -------------------------------------------------------------------------------- /android/app/src/main/assets/fonts/Zocial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/assets/fonts/Zocial.ttf -------------------------------------------------------------------------------- /android/app/src/main/java/com/elektropepi/bootboi/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.elektropepi.bootboi; 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. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "BootBoi"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/elektropepi/bootboi/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.elektropepi.bootboi; 2 | 3 | import com.elektropepi.bootboi.generated.BasePackageList; 4 | import android.app.Application; 5 | import android.content.Context; 6 | import com.facebook.react.PackageList; 7 | import com.facebook.react.ReactApplication; 8 | import com.facebook.react.ReactInstanceManager; 9 | import com.facebook.react.ReactNativeHost; 10 | import com.facebook.react.ReactPackage; 11 | import com.facebook.soloader.SoLoader; 12 | import java.lang.reflect.InvocationTargetException; 13 | import java.util.List; 14 | import java.util.Arrays; 15 | 16 | import org.unimodules.adapters.react.ModuleRegistryAdapter; 17 | import org.unimodules.adapters.react.ReactModuleRegistryProvider; 18 | import org.unimodules.core.interfaces.SingletonModule; 19 | 20 | public class MainApplication extends Application implements ReactApplication { 21 | private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(new BasePackageList().getPackageList(), null); 22 | 23 | private final ReactNativeHost mReactNativeHost = 24 | new ReactNativeHost(this) { 25 | @Override 26 | public boolean getUseDeveloperSupport() { 27 | return BuildConfig.DEBUG; 28 | } 29 | 30 | @Override 31 | protected List getPackages() { 32 | @SuppressWarnings("UnnecessaryLocalVariable") 33 | List packages = new PackageList(this).getPackages(); 34 | // Packages that cannot be autolinked yet can be added manually here, for example: 35 | packages.add(new MyAppPackage()); 36 | // Add unimodules 37 | List unimodules = Arrays.asList( 38 | new ModuleRegistryAdapter(mModuleRegistryProvider) 39 | ); 40 | packages.addAll(unimodules); 41 | return packages; 42 | } 43 | 44 | @Override 45 | protected String getJSMainModuleName() { 46 | return "index"; 47 | } 48 | }; 49 | 50 | @Override 51 | public ReactNativeHost getReactNativeHost() { 52 | return mReactNativeHost; 53 | } 54 | 55 | @Override 56 | public void onCreate() { 57 | super.onCreate(); 58 | SoLoader.init(this, /* native exopackage */ false); 59 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 60 | } 61 | 62 | /** 63 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 64 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 65 | * 66 | * @param context 67 | * @param reactInstanceManager 68 | */ 69 | private static void initializeFlipper( 70 | Context context, ReactInstanceManager reactInstanceManager) { 71 | if (BuildConfig.DEBUG) { 72 | try { 73 | /* 74 | We use reflection here to pick up the class that initializes Flipper, 75 | since Flipper library is not available in release mode 76 | */ 77 | Class aClass = Class.forName("com.elektropepi.bootboi.ReactNativeFlipper"); 78 | aClass 79 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 80 | .invoke(null, context, reactInstanceManager); 81 | } catch (ClassNotFoundException e) { 82 | e.printStackTrace(); 83 | } catch (NoSuchMethodException e) { 84 | e.printStackTrace(); 85 | } catch (IllegalAccessException e) { 86 | e.printStackTrace(); 87 | } catch (InvocationTargetException e) { 88 | e.printStackTrace(); 89 | } 90 | } 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/elektropepi/bootboi/MyAppPackage.java: -------------------------------------------------------------------------------- 1 | package com.elektropepi.bootboi; 2 | import com.facebook.react.ReactPackage; 3 | import com.facebook.react.bridge.NativeModule; 4 | import com.facebook.react.bridge.ReactApplicationContext; 5 | import com.facebook.react.uimanager.ViewManager; 6 | 7 | import java.util.ArrayList; 8 | import java.util.Collections; 9 | import java.util.List; 10 | 11 | public class MyAppPackage implements ReactPackage { 12 | 13 | @Override 14 | public List createViewManagers(ReactApplicationContext reactContext) { 15 | return Collections.emptyList(); 16 | } 17 | 18 | @Override 19 | public List createNativeModules( 20 | ReactApplicationContext reactContext) { 21 | List modules = new ArrayList<>(); 22 | 23 | modules.add(new RemoteCommunicationModule(reactContext)); 24 | 25 | return modules; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/elektropepi/bootboi/RemoteCommunicationModule.java: -------------------------------------------------------------------------------- 1 | package com.elektropepi.bootboi; 2 | 3 | import com.facebook.react.bridge.Promise; 4 | import com.facebook.react.bridge.ReactApplicationContext; 5 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 6 | import com.facebook.react.bridge.ReactMethod; 7 | import com.github.bootboi.SshCommandException; 8 | import com.github.bootboi.WakeOnLan; 9 | import com.github.bootboi.SshCommand; 10 | 11 | import org.jetbrains.annotations.NotNull; 12 | 13 | public class RemoteCommunicationModule extends ReactContextBaseJavaModule { 14 | RemoteCommunicationModule(ReactApplicationContext context) { 15 | super(context); 16 | } 17 | 18 | @ReactMethod 19 | public void wakeUp(String macAddress, Promise promise) { 20 | try { 21 | WakeOnLan wol = new WakeOnLan(macAddress); 22 | wol.wakeUp(); 23 | promise.resolve(true); 24 | } catch (Exception exception) { 25 | promise.reject(exception); 26 | } 27 | 28 | } 29 | 30 | @ReactMethod 31 | public void powerOff(String host, int port, String user, String password, int timeout, Promise promise) { 32 | new SshCommandThread(host, port, user, password, timeout, promise, SshCommand::powerOff).start(); 33 | } 34 | 35 | @ReactMethod 36 | public void reboot(String host, int port, String user, String password, int timeout, Promise promise) { 37 | new SshCommandThread(host, port, user, password, timeout, promise, SshCommand::reboot).start(); 38 | } 39 | 40 | @ReactMethod 41 | public void whoAmI(String host, int port, String user, String password, int timeout, Promise promise) { 42 | new SshCommandThread(host, port, user, password, timeout, promise, SshCommand::whoAmI).start(); 43 | } 44 | 45 | @ReactMethod 46 | public void canExecuteAsRoot(String host, int port, String user, String password, int timeout, Promise promise) { 47 | new SshCommandThread(host, port, user, password, timeout, promise, SshCommand::canExecuteAsRoot).start(); 48 | } 49 | 50 | @ReactMethod 51 | public void isReachable(String host, int port, String user, String password, Promise promise) { 52 | new SshCommandThread(host, port, user, password, 0, promise, SshCommand::isReachable).start(); 53 | } 54 | 55 | @NotNull 56 | @Override 57 | public String getName() { 58 | return "RemoteCommunicationModule"; 59 | } 60 | 61 | @FunctionalInterface 62 | interface SshCommandFunction { 63 | R apply(T t) throws SshCommandException; 64 | } 65 | 66 | static class SshCommandThread extends Thread { 67 | private final SshCommandFunction call; 68 | private final SshCommand sshCommand; 69 | private final Promise promise; 70 | 71 | SshCommandThread(String host, int port, String user, String password, int timeout, Promise promise, SshCommandFunction call) { 72 | this.promise = promise; 73 | this.sshCommand = new SshCommand(host, port, user, password, timeout); 74 | this.call = call; 75 | } 76 | 77 | public void run() { 78 | try { 79 | promise.resolve(call.apply(sshCommand)); 80 | } catch (Exception exception) { 81 | promise.reject(exception); 82 | } 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/elektropepi/bootboi/generated/BasePackageList.java: -------------------------------------------------------------------------------- 1 | package com.elektropepi.bootboi.generated; 2 | 3 | import java.util.Arrays; 4 | import java.util.List; 5 | import org.unimodules.core.interfaces.Package; 6 | 7 | public class BasePackageList { 8 | public List getPackageList() { 9 | return Arrays.asList( 10 | new expo.modules.constants.ConstantsPackage(), 11 | new expo.modules.filesystem.FileSystemPackage(), 12 | new expo.modules.imageloader.ImageLoaderPackage(), 13 | new expo.modules.permissions.PermissionsPackage(), 14 | new expo.modules.securestore.SecureStorePackage() 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BootBoi 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.2" 6 | minSdkVersion = 24 7 | compileSdkVersion = 29 8 | targetSdkVersion = 29 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:3.5.3") 16 | // NOTE: Do not place your application dependencies here; they belong 17 | // in the individual module build.gradle files 18 | } 19 | } 20 | 21 | allprojects { 22 | repositories { 23 | mavenLocal() 24 | maven { 25 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 26 | url("$rootDir/../node_modules/react-native/android") 27 | } 28 | maven { 29 | // Android JSC is installed from npm 30 | url("$rootDir/../node_modules/jsc-android/dist") 31 | } 32 | 33 | google() 34 | jcenter() 35 | maven { url 'https://www.jitpack.io' } 36 | } 37 | } -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.54.0 29 | org.gradle.jvmargs=-XX\:MaxHeapSize\=2048m -Xmx2048m 30 | BOOTBOI_UPLOAD_STORE_FILE=bootboi.keystore 31 | BOOTBOI_UPLOAD_KEY_ALIAS=bootboi 32 | BOOTBOI_UPLOAD_STORE_PASSWORD=TODO_FILL_PASSWORD 33 | BOOTBOI_UPLOAD_KEY_PASSWORD=TODO_FILL_PASSWORD 34 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'BootBoi' 2 | apply from: '../node_modules/react-native-unimodules/gradle.groovy'; includeUnimodulesProjects() 3 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 4 | include ':app' 5 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BootBoi", 3 | "displayName": "BootBoi" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /images/fdroid-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/images/fdroid-badge.png -------------------------------------------------------------------------------- /images/google-play-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/images/google-play-badge.png -------------------------------------------------------------------------------- /images/screenshots_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/images/screenshots_1.png -------------------------------------------------------------------------------- /images/screenshots_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/images/screenshots_2.png -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | import 'react-native-gesture-handler'; 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/BootBoi-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ios/BootBoi-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /ios/BootBoi.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* BootBoiTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BootBoiTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 15 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 16 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 17 | 2DCD954D1E0B4F2C00145EB5 /* BootBoiTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* BootBoiTests.m */; }; 18 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 19 | EA97EFEABF8E4684B2318AFD /* AntDesign.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 916459841764465AA09BC527 /* AntDesign.ttf */; }; 20 | 0721123F942C4254A05238C3 /* Entypo.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0855B52D16A145B38A0FDA1A /* Entypo.ttf */; }; 21 | D4A20F86AC9B48ED8E83C824 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F6606ADE843B4B87A5BFBBC2 /* EvilIcons.ttf */; }; 22 | E2579E15D1B144D498EE5F29 /* Feather.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0F7B41EB25964B20933068CE /* Feather.ttf */; }; 23 | 4A66B57348F94FB880BA4A1D /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 2286360D2DAB4C6F8F1E166A /* FontAwesome.ttf */; }; 24 | 9EC1332E2A2B4E2BA0CC18F0 /* FontAwesome5_Brands.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 81DE5B01BBB54C81A4A1DDBD /* FontAwesome5_Brands.ttf */; }; 25 | ED07966F9D45492B8668C050 /* FontAwesome5_Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 53D5A4C3601143368406C12C /* FontAwesome5_Regular.ttf */; }; 26 | E14A6B0E2DC84AC69ABE5800 /* FontAwesome5_Solid.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7F8F816652DF4D18A99A83F8 /* FontAwesome5_Solid.ttf */; }; 27 | 0443385631D44998804AE6E4 /* Fontisto.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C8FF3DC196EC43059D27CDEC /* Fontisto.ttf */; }; 28 | CF7DE05A114A4F2C80167012 /* Foundation.ttf in Resources */ = {isa = PBXBuildFile; fileRef = F4B69BA0E2C14649BF996F54 /* Foundation.ttf */; }; 29 | 0D6B03F977664331875EBB4D /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1F2C393824D14C5A97DACC37 /* Ionicons.ttf */; }; 30 | BCDB78F78B3D4919AF3858C7 /* MaterialCommunityIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FA0FA1614D6045E38F2A9AD0 /* MaterialCommunityIcons.ttf */; }; 31 | A750EDA8A4184B10BB4765C0 /* MaterialIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 02263C7E3152419A9295F70B /* MaterialIcons.ttf */; }; 32 | 946F3F7929904762A7F9483C /* Octicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FA01E97D21A840EEA9D60447 /* Octicons.ttf */; }; 33 | 5E894CFE70284C3A8C15B8D0 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0CEC4138352740E78D186AA9 /* SimpleLineIcons.ttf */; }; 34 | 2FBDDEA9CEFB4C7C8A46E1BA /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 243041BAE6864FBC8554E36E /* Zocial.ttf */; }; 35 | /* End PBXBuildFile section */ 36 | 37 | /* Begin PBXContainerItemProxy section */ 38 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 39 | isa = PBXContainerItemProxy; 40 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 41 | proxyType = 1; 42 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 43 | remoteInfo = BootBoi; 44 | }; 45 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 46 | isa = PBXContainerItemProxy; 47 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 48 | proxyType = 1; 49 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 50 | remoteInfo = "BootBoi-tvOS"; 51 | }; 52 | /* End PBXContainerItemProxy section */ 53 | 54 | /* Begin PBXFileReference section */ 55 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 56 | 00E356EE1AD99517003FC87E /* BootBoiTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BootBoiTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 00E356F21AD99517003FC87E /* BootBoiTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BootBoiTests.m; sourceTree = ""; }; 59 | 13B07F961A680F5B00A75B9A /* BootBoi.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BootBoi.app; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = BootBoi/AppDelegate.h; sourceTree = ""; }; 61 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = BootBoi/AppDelegate.m; sourceTree = ""; }; 62 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = BootBoi/Images.xcassets; sourceTree = ""; }; 63 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = BootBoi/Info.plist; sourceTree = ""; }; 64 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = BootBoi/main.m; sourceTree = ""; }; 65 | 2D02E47B1E0B4A5D006451C7 /* BootBoi-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "BootBoi-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 66 | 2D02E4901E0B4A5D006451C7 /* BootBoi-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "BootBoi-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = BootBoi/LaunchScreen.storyboard; sourceTree = ""; }; 68 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 69 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 70 | 916459841764465AA09BC527 /* AntDesign.ttf */ = {isa = PBXFileReference; name = "AntDesign.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 71 | 0855B52D16A145B38A0FDA1A /* Entypo.ttf */ = {isa = PBXFileReference; name = "Entypo.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Entypo.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 72 | F6606ADE843B4B87A5BFBBC2 /* EvilIcons.ttf */ = {isa = PBXFileReference; name = "EvilIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 73 | 0F7B41EB25964B20933068CE /* Feather.ttf */ = {isa = PBXFileReference; name = "Feather.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Feather.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 74 | 2286360D2DAB4C6F8F1E166A /* FontAwesome.ttf */ = {isa = PBXFileReference; name = "FontAwesome.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 75 | 81DE5B01BBB54C81A4A1DDBD /* FontAwesome5_Brands.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Brands.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 76 | 53D5A4C3601143368406C12C /* FontAwesome5_Regular.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Regular.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 77 | 7F8F816652DF4D18A99A83F8 /* FontAwesome5_Solid.ttf */ = {isa = PBXFileReference; name = "FontAwesome5_Solid.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 78 | C8FF3DC196EC43059D27CDEC /* Fontisto.ttf */ = {isa = PBXFileReference; name = "Fontisto.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 79 | F4B69BA0E2C14649BF996F54 /* Foundation.ttf */ = {isa = PBXFileReference; name = "Foundation.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 80 | 1F2C393824D14C5A97DACC37 /* Ionicons.ttf */ = {isa = PBXFileReference; name = "Ionicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 81 | FA0FA1614D6045E38F2A9AD0 /* MaterialCommunityIcons.ttf */ = {isa = PBXFileReference; name = "MaterialCommunityIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 82 | 02263C7E3152419A9295F70B /* MaterialIcons.ttf */ = {isa = PBXFileReference; name = "MaterialIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 83 | FA01E97D21A840EEA9D60447 /* Octicons.ttf */ = {isa = PBXFileReference; name = "Octicons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Octicons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 84 | 0CEC4138352740E78D186AA9 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 85 | 243041BAE6864FBC8554E36E /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/react-native-vector-icons/Fonts/Zocial.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; 86 | /* End PBXFileReference section */ 87 | 88 | /* Begin PBXFrameworksBuildPhase section */ 89 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 97 | isa = PBXFrameworksBuildPhase; 98 | buildActionMask = 2147483647; 99 | files = ( 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 104 | isa = PBXFrameworksBuildPhase; 105 | buildActionMask = 2147483647; 106 | files = ( 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 111 | isa = PBXFrameworksBuildPhase; 112 | buildActionMask = 2147483647; 113 | files = ( 114 | ); 115 | runOnlyForDeploymentPostprocessing = 0; 116 | }; 117 | /* End PBXFrameworksBuildPhase section */ 118 | 119 | /* Begin PBXGroup section */ 120 | 00E356EF1AD99517003FC87E /* BootBoiTests */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 00E356F21AD99517003FC87E /* BootBoiTests.m */, 124 | 00E356F01AD99517003FC87E /* Supporting Files */, 125 | ); 126 | path = BootBoiTests; 127 | sourceTree = ""; 128 | }; 129 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 00E356F11AD99517003FC87E /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 13B07FAE1A68108700A75B9A /* BootBoi */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 141 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 142 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 143 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 144 | 13B07FB61A68108700A75B9A /* Info.plist */, 145 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 146 | 13B07FB71A68108700A75B9A /* main.m */, 147 | ); 148 | name = BootBoi; 149 | sourceTree = ""; 150 | }; 151 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 155 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 156 | ); 157 | name = Frameworks; 158 | sourceTree = ""; 159 | }; 160 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | ); 164 | name = Libraries; 165 | sourceTree = ""; 166 | }; 167 | 83CBB9F61A601CBA00E9B192 = { 168 | isa = PBXGroup; 169 | children = ( 170 | 13B07FAE1A68108700A75B9A /* BootBoi */, 171 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 172 | 00E356EF1AD99517003FC87E /* BootBoiTests */, 173 | 83CBBA001A601CBA00E9B192 /* Products */, 174 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 175 | AC16DE4D3CE44451B7268B75 /* Resources */, 176 | ); 177 | indentWidth = 2; 178 | sourceTree = ""; 179 | tabWidth = 2; 180 | usesTabs = 0; 181 | }; 182 | 83CBBA001A601CBA00E9B192 /* Products */ = { 183 | isa = PBXGroup; 184 | children = ( 185 | 13B07F961A680F5B00A75B9A /* BootBoi.app */, 186 | 00E356EE1AD99517003FC87E /* BootBoiTests.xctest */, 187 | 2D02E47B1E0B4A5D006451C7 /* BootBoi-tvOS.app */, 188 | 2D02E4901E0B4A5D006451C7 /* BootBoi-tvOSTests.xctest */, 189 | ); 190 | name = Products; 191 | sourceTree = ""; 192 | }; 193 | AC16DE4D3CE44451B7268B75 /* Resources */ = { 194 | isa = "PBXGroup"; 195 | children = ( 196 | 916459841764465AA09BC527 /* AntDesign.ttf */, 197 | 0855B52D16A145B38A0FDA1A /* Entypo.ttf */, 198 | F6606ADE843B4B87A5BFBBC2 /* EvilIcons.ttf */, 199 | 0F7B41EB25964B20933068CE /* Feather.ttf */, 200 | 2286360D2DAB4C6F8F1E166A /* FontAwesome.ttf */, 201 | 81DE5B01BBB54C81A4A1DDBD /* FontAwesome5_Brands.ttf */, 202 | 53D5A4C3601143368406C12C /* FontAwesome5_Regular.ttf */, 203 | 7F8F816652DF4D18A99A83F8 /* FontAwesome5_Solid.ttf */, 204 | C8FF3DC196EC43059D27CDEC /* Fontisto.ttf */, 205 | F4B69BA0E2C14649BF996F54 /* Foundation.ttf */, 206 | 1F2C393824D14C5A97DACC37 /* Ionicons.ttf */, 207 | FA0FA1614D6045E38F2A9AD0 /* MaterialCommunityIcons.ttf */, 208 | 02263C7E3152419A9295F70B /* MaterialIcons.ttf */, 209 | FA01E97D21A840EEA9D60447 /* Octicons.ttf */, 210 | 0CEC4138352740E78D186AA9 /* SimpleLineIcons.ttf */, 211 | 243041BAE6864FBC8554E36E /* Zocial.ttf */, 212 | ); 213 | name = Resources; 214 | sourceTree = ""; 215 | path = ""; 216 | }; 217 | /* End PBXGroup section */ 218 | 219 | /* Begin PBXNativeTarget section */ 220 | 00E356ED1AD99517003FC87E /* BootBoiTests */ = { 221 | isa = PBXNativeTarget; 222 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BootBoiTests" */; 223 | buildPhases = ( 224 | 00E356EA1AD99517003FC87E /* Sources */, 225 | 00E356EB1AD99517003FC87E /* Frameworks */, 226 | 00E356EC1AD99517003FC87E /* Resources */, 227 | ); 228 | buildRules = ( 229 | ); 230 | dependencies = ( 231 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 232 | ); 233 | name = BootBoiTests; 234 | productName = BootBoiTests; 235 | productReference = 00E356EE1AD99517003FC87E /* BootBoiTests.xctest */; 236 | productType = "com.apple.product-type.bundle.unit-test"; 237 | }; 238 | 13B07F861A680F5B00A75B9A /* BootBoi */ = { 239 | isa = PBXNativeTarget; 240 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BootBoi" */; 241 | buildPhases = ( 242 | FD10A7F022414F080027D42C /* Start Packager */, 243 | 13B07F871A680F5B00A75B9A /* Sources */, 244 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 245 | 13B07F8E1A680F5B00A75B9A /* Resources */, 246 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 247 | ); 248 | buildRules = ( 249 | ); 250 | dependencies = ( 251 | ); 252 | name = BootBoi; 253 | productName = BootBoi; 254 | productReference = 13B07F961A680F5B00A75B9A /* BootBoi.app */; 255 | productType = "com.apple.product-type.application"; 256 | }; 257 | 2D02E47A1E0B4A5D006451C7 /* BootBoi-tvOS */ = { 258 | isa = PBXNativeTarget; 259 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BootBoi-tvOS" */; 260 | buildPhases = ( 261 | FD10A7F122414F3F0027D42C /* Start Packager */, 262 | 2D02E4771E0B4A5D006451C7 /* Sources */, 263 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 264 | 2D02E4791E0B4A5D006451C7 /* Resources */, 265 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 266 | ); 267 | buildRules = ( 268 | ); 269 | dependencies = ( 270 | ); 271 | name = "BootBoi-tvOS"; 272 | productName = "BootBoi-tvOS"; 273 | productReference = 2D02E47B1E0B4A5D006451C7 /* BootBoi-tvOS.app */; 274 | productType = "com.apple.product-type.application"; 275 | }; 276 | 2D02E48F1E0B4A5D006451C7 /* BootBoi-tvOSTests */ = { 277 | isa = PBXNativeTarget; 278 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BootBoi-tvOSTests" */; 279 | buildPhases = ( 280 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 281 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 282 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 283 | ); 284 | buildRules = ( 285 | ); 286 | dependencies = ( 287 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 288 | ); 289 | name = "BootBoi-tvOSTests"; 290 | productName = "BootBoi-tvOSTests"; 291 | productReference = 2D02E4901E0B4A5D006451C7 /* BootBoi-tvOSTests.xctest */; 292 | productType = "com.apple.product-type.bundle.unit-test"; 293 | }; 294 | /* End PBXNativeTarget section */ 295 | 296 | /* Begin PBXProject section */ 297 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 298 | isa = PBXProject; 299 | attributes = { 300 | LastUpgradeCheck = 1130; 301 | TargetAttributes = { 302 | 00E356ED1AD99517003FC87E = { 303 | CreatedOnToolsVersion = 6.2; 304 | TestTargetID = 13B07F861A680F5B00A75B9A; 305 | }; 306 | 13B07F861A680F5B00A75B9A = { 307 | LastSwiftMigration = 1120; 308 | }; 309 | 2D02E47A1E0B4A5D006451C7 = { 310 | CreatedOnToolsVersion = 8.2.1; 311 | ProvisioningStyle = Automatic; 312 | }; 313 | 2D02E48F1E0B4A5D006451C7 = { 314 | CreatedOnToolsVersion = 8.2.1; 315 | ProvisioningStyle = Automatic; 316 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 317 | }; 318 | }; 319 | }; 320 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BootBoi" */; 321 | compatibilityVersion = "Xcode 3.2"; 322 | developmentRegion = en; 323 | hasScannedForEncodings = 0; 324 | knownRegions = ( 325 | en, 326 | Base, 327 | ); 328 | mainGroup = 83CBB9F61A601CBA00E9B192; 329 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 330 | projectDirPath = ""; 331 | projectRoot = ""; 332 | targets = ( 333 | 13B07F861A680F5B00A75B9A /* BootBoi */, 334 | 00E356ED1AD99517003FC87E /* BootBoiTests */, 335 | 2D02E47A1E0B4A5D006451C7 /* BootBoi-tvOS */, 336 | 2D02E48F1E0B4A5D006451C7 /* BootBoi-tvOSTests */, 337 | ); 338 | }; 339 | /* End PBXProject section */ 340 | 341 | /* Begin PBXResourcesBuildPhase section */ 342 | 00E356EC1AD99517003FC87E /* Resources */ = { 343 | isa = PBXResourcesBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | runOnlyForDeploymentPostprocessing = 0; 348 | }; 349 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 350 | isa = PBXResourcesBuildPhase; 351 | buildActionMask = 2147483647; 352 | files = ( 353 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 354 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 355 | EA97EFEABF8E4684B2318AFD /* AntDesign.ttf in Resources */, 356 | 0721123F942C4254A05238C3 /* Entypo.ttf in Resources */, 357 | D4A20F86AC9B48ED8E83C824 /* EvilIcons.ttf in Resources */, 358 | E2579E15D1B144D498EE5F29 /* Feather.ttf in Resources */, 359 | 4A66B57348F94FB880BA4A1D /* FontAwesome.ttf in Resources */, 360 | 9EC1332E2A2B4E2BA0CC18F0 /* FontAwesome5_Brands.ttf in Resources */, 361 | ED07966F9D45492B8668C050 /* FontAwesome5_Regular.ttf in Resources */, 362 | E14A6B0E2DC84AC69ABE5800 /* FontAwesome5_Solid.ttf in Resources */, 363 | 0443385631D44998804AE6E4 /* Fontisto.ttf in Resources */, 364 | CF7DE05A114A4F2C80167012 /* Foundation.ttf in Resources */, 365 | 0D6B03F977664331875EBB4D /* Ionicons.ttf in Resources */, 366 | BCDB78F78B3D4919AF3858C7 /* MaterialCommunityIcons.ttf in Resources */, 367 | A750EDA8A4184B10BB4765C0 /* MaterialIcons.ttf in Resources */, 368 | 946F3F7929904762A7F9483C /* Octicons.ttf in Resources */, 369 | 5E894CFE70284C3A8C15B8D0 /* SimpleLineIcons.ttf in Resources */, 370 | 2FBDDEA9CEFB4C7C8A46E1BA /* Zocial.ttf in Resources */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 375 | isa = PBXResourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 379 | ); 380 | runOnlyForDeploymentPostprocessing = 0; 381 | }; 382 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 383 | isa = PBXResourcesBuildPhase; 384 | buildActionMask = 2147483647; 385 | files = ( 386 | ); 387 | runOnlyForDeploymentPostprocessing = 0; 388 | }; 389 | /* End PBXResourcesBuildPhase section */ 390 | 391 | /* Begin PBXShellScriptBuildPhase section */ 392 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 393 | isa = PBXShellScriptBuildPhase; 394 | buildActionMask = 2147483647; 395 | files = ( 396 | ); 397 | inputPaths = ( 398 | ); 399 | name = "Bundle React Native code and images"; 400 | outputPaths = ( 401 | ); 402 | runOnlyForDeploymentPostprocessing = 0; 403 | shellPath = /bin/sh; 404 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 405 | }; 406 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 407 | isa = PBXShellScriptBuildPhase; 408 | buildActionMask = 2147483647; 409 | files = ( 410 | ); 411 | inputPaths = ( 412 | ); 413 | name = "Bundle React Native Code And Images"; 414 | outputPaths = ( 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | shellPath = /bin/sh; 418 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 419 | }; 420 | FD10A7F022414F080027D42C /* Start Packager */ = { 421 | isa = PBXShellScriptBuildPhase; 422 | buildActionMask = 2147483647; 423 | files = ( 424 | ); 425 | inputFileListPaths = ( 426 | ); 427 | inputPaths = ( 428 | ); 429 | name = "Start Packager"; 430 | outputFileListPaths = ( 431 | ); 432 | outputPaths = ( 433 | ); 434 | runOnlyForDeploymentPostprocessing = 0; 435 | shellPath = /bin/sh; 436 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 437 | showEnvVarsInLog = 0; 438 | }; 439 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 440 | isa = PBXShellScriptBuildPhase; 441 | buildActionMask = 2147483647; 442 | files = ( 443 | ); 444 | inputFileListPaths = ( 445 | ); 446 | inputPaths = ( 447 | ); 448 | name = "Start Packager"; 449 | outputFileListPaths = ( 450 | ); 451 | outputPaths = ( 452 | ); 453 | runOnlyForDeploymentPostprocessing = 0; 454 | shellPath = /bin/sh; 455 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 456 | showEnvVarsInLog = 0; 457 | }; 458 | /* End PBXShellScriptBuildPhase section */ 459 | 460 | /* Begin PBXSourcesBuildPhase section */ 461 | 00E356EA1AD99517003FC87E /* Sources */ = { 462 | isa = PBXSourcesBuildPhase; 463 | buildActionMask = 2147483647; 464 | files = ( 465 | 00E356F31AD99517003FC87E /* BootBoiTests.m in Sources */, 466 | ); 467 | runOnlyForDeploymentPostprocessing = 0; 468 | }; 469 | 13B07F871A680F5B00A75B9A /* Sources */ = { 470 | isa = PBXSourcesBuildPhase; 471 | buildActionMask = 2147483647; 472 | files = ( 473 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 474 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 475 | ); 476 | runOnlyForDeploymentPostprocessing = 0; 477 | }; 478 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 479 | isa = PBXSourcesBuildPhase; 480 | buildActionMask = 2147483647; 481 | files = ( 482 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 483 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 484 | ); 485 | runOnlyForDeploymentPostprocessing = 0; 486 | }; 487 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 488 | isa = PBXSourcesBuildPhase; 489 | buildActionMask = 2147483647; 490 | files = ( 491 | 2DCD954D1E0B4F2C00145EB5 /* BootBoiTests.m in Sources */, 492 | ); 493 | runOnlyForDeploymentPostprocessing = 0; 494 | }; 495 | /* End PBXSourcesBuildPhase section */ 496 | 497 | /* Begin PBXTargetDependency section */ 498 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 499 | isa = PBXTargetDependency; 500 | target = 13B07F861A680F5B00A75B9A /* BootBoi */; 501 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 502 | }; 503 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 504 | isa = PBXTargetDependency; 505 | target = 2D02E47A1E0B4A5D006451C7 /* BootBoi-tvOS */; 506 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 507 | }; 508 | /* End PBXTargetDependency section */ 509 | 510 | /* Begin XCBuildConfiguration section */ 511 | 00E356F61AD99517003FC87E /* Debug */ = { 512 | isa = XCBuildConfiguration; 513 | buildSettings = { 514 | BUNDLE_LOADER = "$(TEST_HOST)"; 515 | GCC_PREPROCESSOR_DEFINITIONS = ( 516 | "DEBUG=1", 517 | "$(inherited)", 518 | ); 519 | INFOPLIST_FILE = BootBoiTests/Info.plist; 520 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 521 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 522 | OTHER_LDFLAGS = ( 523 | "-ObjC", 524 | "-lc++", 525 | "$(inherited)", 526 | ); 527 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 528 | PRODUCT_NAME = "$(TARGET_NAME)"; 529 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BootBoi.app/BootBoi"; 530 | }; 531 | name = Debug; 532 | }; 533 | 00E356F71AD99517003FC87E /* Release */ = { 534 | isa = XCBuildConfiguration; 535 | buildSettings = { 536 | BUNDLE_LOADER = "$(TEST_HOST)"; 537 | COPY_PHASE_STRIP = NO; 538 | INFOPLIST_FILE = BootBoiTests/Info.plist; 539 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 540 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 541 | OTHER_LDFLAGS = ( 542 | "-ObjC", 543 | "-lc++", 544 | "$(inherited)", 545 | ); 546 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 547 | PRODUCT_NAME = "$(TARGET_NAME)"; 548 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BootBoi.app/BootBoi"; 549 | }; 550 | name = Release; 551 | }; 552 | 13B07F941A680F5B00A75B9A /* Debug */ = { 553 | isa = XCBuildConfiguration; 554 | buildSettings = { 555 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 556 | CLANG_ENABLE_MODULES = YES; 557 | CURRENT_PROJECT_VERSION = 1; 558 | ENABLE_BITCODE = NO; 559 | INFOPLIST_FILE = BootBoi/Info.plist; 560 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 561 | OTHER_LDFLAGS = ( 562 | "$(inherited)", 563 | "-ObjC", 564 | "-lc++", 565 | ); 566 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 567 | PRODUCT_NAME = BootBoi; 568 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 569 | SWIFT_VERSION = 5.0; 570 | VERSIONING_SYSTEM = "apple-generic"; 571 | }; 572 | name = Debug; 573 | }; 574 | 13B07F951A680F5B00A75B9A /* Release */ = { 575 | isa = XCBuildConfiguration; 576 | buildSettings = { 577 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 578 | CLANG_ENABLE_MODULES = YES; 579 | CURRENT_PROJECT_VERSION = 1; 580 | INFOPLIST_FILE = BootBoi/Info.plist; 581 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 582 | OTHER_LDFLAGS = ( 583 | "$(inherited)", 584 | "-ObjC", 585 | "-lc++", 586 | ); 587 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 588 | PRODUCT_NAME = BootBoi; 589 | SWIFT_VERSION = 5.0; 590 | VERSIONING_SYSTEM = "apple-generic"; 591 | }; 592 | name = Release; 593 | }; 594 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 595 | isa = XCBuildConfiguration; 596 | buildSettings = { 597 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 598 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 599 | CLANG_ANALYZER_NONNULL = YES; 600 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 601 | CLANG_WARN_INFINITE_RECURSION = YES; 602 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 603 | DEBUG_INFORMATION_FORMAT = dwarf; 604 | ENABLE_TESTABILITY = YES; 605 | GCC_NO_COMMON_BLOCKS = YES; 606 | INFOPLIST_FILE = "BootBoi-tvOS/Info.plist"; 607 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 608 | OTHER_LDFLAGS = ( 609 | "$(inherited)", 610 | "-ObjC", 611 | "-lc++", 612 | ); 613 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.BootBoi-tvOS"; 614 | PRODUCT_NAME = "$(TARGET_NAME)"; 615 | SDKROOT = appletvos; 616 | TARGETED_DEVICE_FAMILY = 3; 617 | TVOS_DEPLOYMENT_TARGET = 10.0; 618 | }; 619 | name = Debug; 620 | }; 621 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 622 | isa = XCBuildConfiguration; 623 | buildSettings = { 624 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 625 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 626 | CLANG_ANALYZER_NONNULL = YES; 627 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 628 | CLANG_WARN_INFINITE_RECURSION = YES; 629 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 630 | COPY_PHASE_STRIP = NO; 631 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 632 | GCC_NO_COMMON_BLOCKS = YES; 633 | INFOPLIST_FILE = "BootBoi-tvOS/Info.plist"; 634 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 635 | OTHER_LDFLAGS = ( 636 | "$(inherited)", 637 | "-ObjC", 638 | "-lc++", 639 | ); 640 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.BootBoi-tvOS"; 641 | PRODUCT_NAME = "$(TARGET_NAME)"; 642 | SDKROOT = appletvos; 643 | TARGETED_DEVICE_FAMILY = 3; 644 | TVOS_DEPLOYMENT_TARGET = 10.0; 645 | }; 646 | name = Release; 647 | }; 648 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 649 | isa = XCBuildConfiguration; 650 | buildSettings = { 651 | BUNDLE_LOADER = "$(TEST_HOST)"; 652 | CLANG_ANALYZER_NONNULL = YES; 653 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 654 | CLANG_WARN_INFINITE_RECURSION = YES; 655 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 656 | DEBUG_INFORMATION_FORMAT = dwarf; 657 | ENABLE_TESTABILITY = YES; 658 | GCC_NO_COMMON_BLOCKS = YES; 659 | INFOPLIST_FILE = "BootBoi-tvOSTests/Info.plist"; 660 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 661 | OTHER_LDFLAGS = ( 662 | "$(inherited)", 663 | "-ObjC", 664 | "-lc++", 665 | ); 666 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.BootBoi-tvOSTests"; 667 | PRODUCT_NAME = "$(TARGET_NAME)"; 668 | SDKROOT = appletvos; 669 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BootBoi-tvOS.app/BootBoi-tvOS"; 670 | TVOS_DEPLOYMENT_TARGET = 10.1; 671 | }; 672 | name = Debug; 673 | }; 674 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 675 | isa = XCBuildConfiguration; 676 | buildSettings = { 677 | BUNDLE_LOADER = "$(TEST_HOST)"; 678 | CLANG_ANALYZER_NONNULL = YES; 679 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 680 | CLANG_WARN_INFINITE_RECURSION = YES; 681 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 682 | COPY_PHASE_STRIP = NO; 683 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 684 | GCC_NO_COMMON_BLOCKS = YES; 685 | INFOPLIST_FILE = "BootBoi-tvOSTests/Info.plist"; 686 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 687 | OTHER_LDFLAGS = ( 688 | "$(inherited)", 689 | "-ObjC", 690 | "-lc++", 691 | ); 692 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.BootBoi-tvOSTests"; 693 | PRODUCT_NAME = "$(TARGET_NAME)"; 694 | SDKROOT = appletvos; 695 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/BootBoi-tvOS.app/BootBoi-tvOS"; 696 | TVOS_DEPLOYMENT_TARGET = 10.1; 697 | }; 698 | name = Release; 699 | }; 700 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 701 | isa = XCBuildConfiguration; 702 | buildSettings = { 703 | ALWAYS_SEARCH_USER_PATHS = NO; 704 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 705 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 706 | CLANG_CXX_LIBRARY = "libc++"; 707 | CLANG_ENABLE_MODULES = YES; 708 | CLANG_ENABLE_OBJC_ARC = YES; 709 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 710 | CLANG_WARN_BOOL_CONVERSION = YES; 711 | CLANG_WARN_COMMA = YES; 712 | CLANG_WARN_CONSTANT_CONVERSION = YES; 713 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 714 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 715 | CLANG_WARN_EMPTY_BODY = YES; 716 | CLANG_WARN_ENUM_CONVERSION = YES; 717 | CLANG_WARN_INFINITE_RECURSION = YES; 718 | CLANG_WARN_INT_CONVERSION = YES; 719 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 720 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 721 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 722 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 723 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 724 | CLANG_WARN_STRICT_PROTOTYPES = YES; 725 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 726 | CLANG_WARN_UNREACHABLE_CODE = YES; 727 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 728 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 729 | COPY_PHASE_STRIP = NO; 730 | ENABLE_STRICT_OBJC_MSGSEND = YES; 731 | ENABLE_TESTABILITY = YES; 732 | GCC_C_LANGUAGE_STANDARD = gnu99; 733 | GCC_DYNAMIC_NO_PIC = NO; 734 | GCC_NO_COMMON_BLOCKS = YES; 735 | GCC_OPTIMIZATION_LEVEL = 0; 736 | GCC_PREPROCESSOR_DEFINITIONS = ( 737 | "DEBUG=1", 738 | "$(inherited)", 739 | ); 740 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 741 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 742 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 743 | GCC_WARN_UNDECLARED_SELECTOR = YES; 744 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 745 | GCC_WARN_UNUSED_FUNCTION = YES; 746 | GCC_WARN_UNUSED_VARIABLE = YES; 747 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 748 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 749 | LIBRARY_SEARCH_PATHS = ( 750 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 751 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 752 | "\"$(inherited)\"", 753 | ); 754 | MTL_ENABLE_DEBUG_INFO = YES; 755 | ONLY_ACTIVE_ARCH = YES; 756 | SDKROOT = iphoneos; 757 | }; 758 | name = Debug; 759 | }; 760 | 83CBBA211A601CBA00E9B192 /* Release */ = { 761 | isa = XCBuildConfiguration; 762 | buildSettings = { 763 | ALWAYS_SEARCH_USER_PATHS = NO; 764 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 765 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 766 | CLANG_CXX_LIBRARY = "libc++"; 767 | CLANG_ENABLE_MODULES = YES; 768 | CLANG_ENABLE_OBJC_ARC = YES; 769 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 770 | CLANG_WARN_BOOL_CONVERSION = YES; 771 | CLANG_WARN_COMMA = YES; 772 | CLANG_WARN_CONSTANT_CONVERSION = YES; 773 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 774 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 775 | CLANG_WARN_EMPTY_BODY = YES; 776 | CLANG_WARN_ENUM_CONVERSION = YES; 777 | CLANG_WARN_INFINITE_RECURSION = YES; 778 | CLANG_WARN_INT_CONVERSION = YES; 779 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 780 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 781 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 782 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 783 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 784 | CLANG_WARN_STRICT_PROTOTYPES = YES; 785 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 786 | CLANG_WARN_UNREACHABLE_CODE = YES; 787 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 788 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 789 | COPY_PHASE_STRIP = YES; 790 | ENABLE_NS_ASSERTIONS = NO; 791 | ENABLE_STRICT_OBJC_MSGSEND = YES; 792 | GCC_C_LANGUAGE_STANDARD = gnu99; 793 | GCC_NO_COMMON_BLOCKS = YES; 794 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 795 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 796 | GCC_WARN_UNDECLARED_SELECTOR = YES; 797 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 798 | GCC_WARN_UNUSED_FUNCTION = YES; 799 | GCC_WARN_UNUSED_VARIABLE = YES; 800 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 801 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 802 | LIBRARY_SEARCH_PATHS = ( 803 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 804 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 805 | "\"$(inherited)\"", 806 | ); 807 | MTL_ENABLE_DEBUG_INFO = NO; 808 | SDKROOT = iphoneos; 809 | VALIDATE_PRODUCT = YES; 810 | }; 811 | name = Release; 812 | }; 813 | /* End XCBuildConfiguration section */ 814 | 815 | /* Begin XCConfigurationList section */ 816 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "BootBoiTests" */ = { 817 | isa = XCConfigurationList; 818 | buildConfigurations = ( 819 | 00E356F61AD99517003FC87E /* Debug */, 820 | 00E356F71AD99517003FC87E /* Release */, 821 | ); 822 | defaultConfigurationIsVisible = 0; 823 | defaultConfigurationName = Release; 824 | }; 825 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "BootBoi" */ = { 826 | isa = XCConfigurationList; 827 | buildConfigurations = ( 828 | 13B07F941A680F5B00A75B9A /* Debug */, 829 | 13B07F951A680F5B00A75B9A /* Release */, 830 | ); 831 | defaultConfigurationIsVisible = 0; 832 | defaultConfigurationName = Release; 833 | }; 834 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BootBoi-tvOS" */ = { 835 | isa = XCConfigurationList; 836 | buildConfigurations = ( 837 | 2D02E4971E0B4A5E006451C7 /* Debug */, 838 | 2D02E4981E0B4A5E006451C7 /* Release */, 839 | ); 840 | defaultConfigurationIsVisible = 0; 841 | defaultConfigurationName = Release; 842 | }; 843 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "BootBoi-tvOSTests" */ = { 844 | isa = XCConfigurationList; 845 | buildConfigurations = ( 846 | 2D02E4991E0B4A5E006451C7 /* Debug */, 847 | 2D02E49A1E0B4A5E006451C7 /* Release */, 848 | ); 849 | defaultConfigurationIsVisible = 0; 850 | defaultConfigurationName = Release; 851 | }; 852 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "BootBoi" */ = { 853 | isa = XCConfigurationList; 854 | buildConfigurations = ( 855 | 83CBBA201A601CBA00E9B192 /* Debug */, 856 | 83CBBA211A601CBA00E9B192 /* Release */, 857 | ); 858 | defaultConfigurationIsVisible = 0; 859 | defaultConfigurationName = Release; 860 | }; 861 | /* End XCConfigurationList section */ 862 | }; 863 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 864 | } 865 | -------------------------------------------------------------------------------- /ios/BootBoi.xcodeproj/xcshareddata/xcschemes/BootBoi-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/BootBoi.xcodeproj/xcshareddata/xcschemes/BootBoi.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/BootBoi/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | 6 | @interface AppDelegate : UMAppDelegateWrapper 7 | 8 | @property (nonatomic, strong) UIWindow *window; 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /ios/BootBoi/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #import 8 | #import 9 | #import 10 | 11 | #ifdef FB_SONARKIT_ENABLED 12 | #import 13 | #import 14 | #import 15 | #import 16 | #import 17 | #import 18 | 19 | static void InitializeFlipper(UIApplication *application) { 20 | FlipperClient *client = [FlipperClient sharedClient]; 21 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 22 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 23 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 24 | [client addPlugin:[FlipperKitReactPlugin new]]; 25 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 26 | [client start]; 27 | } 28 | #endif 29 | 30 | @interface AppDelegate () 31 | 32 | @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; 33 | 34 | @end 35 | 36 | @implementation AppDelegate 37 | 38 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 39 | { 40 | #ifdef FB_SONARKIT_ENABLED 41 | InitializeFlipper(application); 42 | #endif 43 | 44 | self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; 45 | 46 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 47 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 48 | moduleName:@"BootBoi" 49 | initialProperties:nil]; 50 | 51 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 52 | 53 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 54 | UIViewController *rootViewController = [UIViewController new]; 55 | rootViewController.view = rootView; 56 | self.window.rootViewController = rootViewController; 57 | [self.window makeKeyAndVisible]; 58 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 59 | return YES; 60 | } 61 | 62 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 63 | { 64 | NSArray> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; 65 | // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here! 66 | return extraModules; 67 | } 68 | 69 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 70 | { 71 | #if DEBUG 72 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 73 | #else 74 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 75 | #endif 76 | } 77 | 78 | @end 79 | -------------------------------------------------------------------------------- /ios/BootBoi/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/BootBoi/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/BootBoi/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | BootBoi 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | UIAppFonts 57 | 58 | AntDesign.ttf 59 | Entypo.ttf 60 | EvilIcons.ttf 61 | Feather.ttf 62 | FontAwesome.ttf 63 | FontAwesome5_Brands.ttf 64 | FontAwesome5_Regular.ttf 65 | FontAwesome5_Solid.ttf 66 | Fontisto.ttf 67 | Foundation.ttf 68 | Ionicons.ttf 69 | MaterialCommunityIcons.ttf 70 | MaterialIcons.ttf 71 | Octicons.ttf 72 | SimpleLineIcons.ttf 73 | Zocial.ttf 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /ios/BootBoi/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ios/BootBoi/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/BootBoiTests/BootBoiTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface BootBoiTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation BootBoiTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios/BootBoiTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | require_relative '../node_modules/react-native-unimodules/cocoapods.rb' 4 | 5 | platform :ios, '11.0' 6 | 7 | target 'BootBoi' do 8 | use_unimodules! 9 | config = use_native_modules! 10 | 11 | use_react_native!(:path => config["reactNativePath"]) 12 | 13 | target 'BootBoiTests' do 14 | inherit! :complete 15 | # Pods for testing 16 | end 17 | 18 | # Enables Flipper. 19 | # 20 | # Note that if you have use_frameworks! enabled, Flipper will not work and 21 | # you should disable these next few lines. 22 | use_flipper! 23 | post_install do |installer| 24 | flipper_post_install(installer) 25 | end 26 | end 27 | 28 | target 'BootBoi-tvOS' do 29 | # Pods for BootBoi-tvOS 30 | 31 | target 'BootBoi-tvOSTests' do 32 | inherit! :search_paths 33 | # Pods for testing 34 | end 35 | end 36 | -------------------------------------------------------------------------------- /metadata/en-US/full_description.txt: -------------------------------------------------------------------------------- 1 | Ever wanted to turn on your remote machine (laptop, Raspberry, NAS), but didn't want to leave the couch? Well I for sure 2 | understand this problem to the heart. But fear no more, as BootBoi is here to save you from the gruesome task of standing up 3 | and pushing a button. 4 | 5 | BootBoi features remote power on / power off / reboot for as many remote machines as you can imagine with the 6 | combined power of SSH and Wake On Lan. 7 | 8 | Preparing your Remote Machine 9 | * Before you can use BootBoi with your remote machines, you have to prepare them for **remote** rebooting and powering them on/off. 10 | 11 | Power On 12 | * To power a remote device on, BootBoi uses Wake On Lan. 13 | * This needs to be enabled in the BIOS of the machine you want to power on, read more here. 14 | 15 | Power Off / Reboot 16 | * BootBoi uses SSH to execute whoami, poweroff and reboot on the remote machine. 17 | * So make sure that 18 | * Those binaries are available and in $PATH 19 | * The SSH user has sudo access to whoami, poweroff and reboot 20 | * Either by allowing the user sudo access only to those binaries via the sudoers file (recommended) 21 | * E.g. `echo "my_ssh_user ALL=(ALL) /sbin/reboot,/sbin/poweroff,/usr/bin/whoami" >> /etc/local/sudoers` 22 | * Or by using root as SSH user in BootBoi 23 | -------------------------------------------------------------------------------- /metadata/en-US/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/metadata/en-US/images/icon.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/metadata/en-US/images/phoneScreenshots/1.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/metadata/en-US/images/phoneScreenshots/2.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/metadata/en-US/images/phoneScreenshots/3.png -------------------------------------------------------------------------------- /metadata/en-US/images/phoneScreenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BootBoi/android-app/0c486dca680113b22953cf38ef05c12737dc08f8/metadata/en-US/images/phoneScreenshots/4.png -------------------------------------------------------------------------------- /metadata/en-US/short_description.txt: -------------------------------------------------------------------------------- 1 | Turn on/off your remote machine without leaving your couch! 2 | -------------------------------------------------------------------------------- /metadata/en-US/title.txt: -------------------------------------------------------------------------------- 1 | BootBoi 2 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "boot-boi", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 11 | }, 12 | "dependencies": { 13 | "@react-native-community/masked-view": "^0.1.10", 14 | "@react-navigation/native": "^5.9.2", 15 | "@react-navigation/stack": "^5.14.2", 16 | "@types/react-native-vector-icons": "^6.4.6", 17 | "expo-secure-store": "^10.0.0", 18 | "react": "17.0.2", 19 | "react-native": "^0.64.0", 20 | "react-native-gesture-handler": "^1.10.1", 21 | "react-native-paper": "^4.7.2", 22 | "react-native-reanimated": "^2.1.0", 23 | "react-native-safe-area-context": "^3.1.9", 24 | "react-native-screens": "^3.1.0", 25 | "react-native-unimodules": "^0.12.0", 26 | "react-native-vector-icons": "^8.0.0", 27 | "react-navigation": "^4.4.3" 28 | }, 29 | "devDependencies": { 30 | "@babel/core": "^7.12.16", 31 | "@babel/runtime": "^7.12.13", 32 | "@react-native-community/eslint-config": "^2.0.0", 33 | "@types/jest": "^26.0.20", 34 | "@types/react-native": "^0.64.2", 35 | "@types/react-test-renderer": "^17.0.1", 36 | "babel-jest": "^26.6.3", 37 | "eslint": "^7.20.0", 38 | "jest": "^26.6.3", 39 | "metro-react-native-babel-preset": "^0.65.1", 40 | "react-test-renderer": "17.0.2", 41 | "typescript": "^4.1.5" 42 | }, 43 | "jest": { 44 | "preset": "react-native", 45 | "moduleFileExtensions": [ 46 | "ts", 47 | "tsx", 48 | "js", 49 | "jsx", 50 | "json", 51 | "node" 52 | ] 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/Component/ColorPicker.tsx: -------------------------------------------------------------------------------- 1 | import React, {useState} from 'react'; 2 | import {StyleSheet, Text, View} from 'react-native'; 3 | import Icon from 'react-native-vector-icons/FontAwesome5'; 4 | import {ALL_COLORS, ColorType} from '../Connection/Connection'; 5 | 6 | interface Props { 7 | originalColor: ColorType; 8 | onColorChange: (color: ColorType) => void; 9 | } 10 | 11 | export default function ColorPicker(props: Props) { 12 | const {originalColor, onColorChange} = props; 13 | const [currentColor, setCurrentColor] = useState(originalColor); 14 | const onTouchEnd = (color: ColorType) => { 15 | setCurrentColor(color); 16 | onColorChange(color); 17 | return true; 18 | }; 19 | return ( 20 | 21 | {ALL_COLORS.map((color) => ( 22 | onTouchEnd(color)}> 23 | 24 | {currentColor === color && } 25 | 26 | ))} 27 | 28 | ); 29 | } 30 | 31 | const circleRadius = 20; 32 | 33 | const styles = StyleSheet.create({ 34 | container: { 35 | flexDirection: 'row', 36 | justifyContent: 'space-evenly', 37 | padding: 8, 38 | }, 39 | circle: { 40 | width: circleRadius * 2, 41 | height: circleRadius * 2, 42 | borderRadius: circleRadius, 43 | alignItems: 'center', 44 | justifyContent: 'center', 45 | }, 46 | icon: { 47 | position: 'absolute', 48 | left: 10, 49 | top: 10, 50 | fontSize: 20, 51 | color: '#ffffff', 52 | }, 53 | }); 54 | -------------------------------------------------------------------------------- /src/Component/IconPicker.tsx: -------------------------------------------------------------------------------- 1 | import React, {useState} from 'react'; 2 | import {StyleSheet, View} from 'react-native'; 3 | import Icon from 'react-native-vector-icons/FontAwesome5'; 4 | import {ALL_ICONS, IconType} from '../Connection/Connection'; 5 | 6 | interface Props { 7 | originalIcon: IconType; 8 | onIconChange: (icon: IconType) => void; 9 | component: JSX.Element; 10 | } 11 | 12 | export default function IconPicker(props: Props) { 13 | const {originalIcon, onIconChange, component} = props; 14 | const [currentIcon, setCurrentIcon] = useState(originalIcon); 15 | 16 | const onTouchEnd = (isLeft: boolean) => { 17 | const currentIndex = ALL_ICONS.indexOf(currentIcon); 18 | if (currentIndex === -1) { 19 | throw Error('IconPicker: currentIcon not in available icons??'); 20 | } 21 | const lastIndex = ALL_ICONS.length - 1; 22 | let newIndex; 23 | if (isLeft) { 24 | newIndex = currentIndex === 0 ? lastIndex : currentIndex - 1; 25 | } else { 26 | newIndex = currentIndex === lastIndex ? 0 : currentIndex + 1; 27 | } 28 | const newIcon = ALL_ICONS[newIndex]; 29 | onIconChange(newIcon); 30 | setCurrentIcon(newIcon); 31 | }; 32 | 33 | return ( 34 | 35 | onTouchEnd(true)}> 36 | 37 | 38 | {component} 39 | onTouchEnd(false)}> 42 | 43 | 44 | 45 | ); 46 | } 47 | 48 | const styles = StyleSheet.create({ 49 | chevron: { 50 | color: '#000000', 51 | fontSize: 56, 52 | }, 53 | chevronContainer: { 54 | padding: 32, 55 | }, 56 | container: { 57 | flexDirection: 'row', 58 | justifyContent: 'center', 59 | alignItems: 'center', 60 | }, 61 | }); 62 | -------------------------------------------------------------------------------- /src/Component/LargeButton.tsx: -------------------------------------------------------------------------------- 1 | import {StyleSheet, View} from 'react-native'; 2 | import Icon from 'react-native-vector-icons/FontAwesome5'; 3 | import React from 'react'; 4 | import {Card, Title} from 'react-native-paper'; 5 | 6 | interface Props { 7 | icon: string; 8 | color: string; 9 | children: string; 10 | onClick: () => void; 11 | disabled?: boolean; 12 | } 13 | 14 | export default function LargeButton(props: Props) { 15 | const {icon, children, color, onClick, disabled} = props; 16 | const onTouchEnd = () => { 17 | if (disabled) { 18 | return true; 19 | } 20 | onClick(); 21 | return true; 22 | }; 23 | const containerStyles = StyleSheet.create({ 24 | container: { 25 | padding: 8, 26 | width: 160, 27 | opacity: disabled ? 0.4 : 1, 28 | }, 29 | }); 30 | return ( 31 | 32 | 33 | 34 | 35 | {children} 36 | 37 | 38 | 39 | ); 40 | } 41 | 42 | const styles = StyleSheet.create({ 43 | title: { 44 | color: '#ffffff', 45 | textAlign: 'center', 46 | }, 47 | icon: { 48 | color: '#ffffff', 49 | fontSize: 56, 50 | textAlign: 'center', 51 | }, 52 | }); 53 | -------------------------------------------------------------------------------- /src/Connection/Connection.ts: -------------------------------------------------------------------------------- 1 | export const ALL_ICONS = [ 2 | 'tv', 3 | 'server', 4 | 'network-wired', 5 | 'laptop', 6 | 'robot', 7 | 'tablet', 8 | ] as const; 9 | export type IconType = typeof ALL_ICONS[number]; 10 | 11 | export const ALL_COLORS = [ 12 | '#0476E9', 13 | '#0597E2', 14 | '#077436', 15 | '#F2B90D', 16 | '#F21906', 17 | ] as const; 18 | export type ColorType = typeof ALL_COLORS[number]; 19 | 20 | export interface Connection { 21 | id: number; 22 | name: string; 23 | description?: string; 24 | icon: IconType; 25 | color: ColorType; 26 | lanConnection: LanConnection; 27 | sshConnection: SshConnection; 28 | } 29 | 30 | interface LanConnection { 31 | macAddress: string; 32 | } 33 | 34 | interface SshConnection { 35 | domain: string; 36 | username: string; 37 | password: string; 38 | port: number; 39 | } 40 | -------------------------------------------------------------------------------- /src/Connection/ConnectionDetail.tsx: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | import {NativeModules, ScrollView, StyleSheet, View} from 'react-native'; 3 | import { 4 | StackNavigationOptions, 5 | StackNavigationProp, 6 | } from '@react-navigation/stack'; 7 | import {RootStackParamList} from '../Main'; 8 | import {RouteProp} from '@react-navigation/native'; 9 | import LargeButton from '../Component/LargeButton'; 10 | import { 11 | ActivityIndicator, 12 | Card, 13 | DefaultTheme, 14 | Paragraph, 15 | Snackbar, 16 | Title, 17 | } from 'react-native-paper'; 18 | import Icon from 'react-native-vector-icons/FontAwesome5'; 19 | import {Connection} from './Connection'; 20 | import {getStoredConnection} from './ConnectionStoreHelper'; 21 | 22 | type DetailScreenNavigationProp = StackNavigationProp< 23 | RootStackParamList, 24 | 'detail' 25 | >; 26 | type DetailScreenRouteProp = RouteProp; 27 | 28 | interface Props { 29 | navigation: DetailScreenNavigationProp; 30 | route: DetailScreenRouteProp; 31 | } 32 | 33 | interface RemoteActionResult { 34 | message: string; 35 | success: boolean; 36 | } 37 | 38 | export const ConnectionDetailSetTitle = ({ 39 | route, 40 | }: Props): StackNavigationOptions => ({title: route.params.name}); 41 | 42 | const timeout = 1500; 43 | 44 | export default function ConnectionDetail(props: Props) { 45 | const [canExecuteAsRoot, setCanExecuteAsRoot] = useState(false); 46 | const [canExecuteError, setCanExecuteError] = useState(null); 47 | const [loading, setLoading] = useState(true); 48 | const [remoteResultVisible, setRemoteResultVisible] = useState( 49 | false, 50 | ); 51 | const [remoteResult, setRemoteResult] = useState( 52 | null, 53 | ); 54 | const {route, navigation} = props; 55 | const [connection, setConnection] = useState(route.params); 56 | const {RemoteCommunicationModule} = NativeModules; 57 | 58 | async function loadConnection() { 59 | const storedConnection = await getStoredConnection(connection.id); 60 | if (storedConnection) { 61 | checkSsh(storedConnection); 62 | setConnection(storedConnection); 63 | } 64 | } 65 | 66 | function checkSsh(storedConnection: Connection) { 67 | const {sshConnection} = storedConnection; 68 | setLoading(true); 69 | const {domain, port, username, password} = sshConnection; 70 | RemoteCommunicationModule.canExecuteAsRoot( 71 | domain, 72 | port, 73 | username, 74 | password, 75 | timeout, 76 | ) 77 | .then((result: any) => { 78 | setCanExecuteError(null); 79 | setCanExecuteAsRoot(result); 80 | }) 81 | .catch((error: any) => { 82 | setCanExecuteError(error.message); 83 | setCanExecuteAsRoot(false); 84 | }) 85 | .finally(() => { 86 | setLoading(false); 87 | }); 88 | } 89 | 90 | useEffect(() => { 91 | return navigation.addListener('focus', () => { 92 | loadConnection(); 93 | }); 94 | }, [navigation, loadConnection]); 95 | 96 | const handleRemoteActionPromise = ( 97 | promise: Promise, 98 | successMessage: string | null = null, 99 | ) => { 100 | promise 101 | .then((result: string) => { 102 | setRemoteResult({ 103 | message: successMessage || result, 104 | success: true, 105 | }); 106 | }) 107 | .catch((error: any) => { 108 | setRemoteResult({ 109 | message: error.message, 110 | success: false, 111 | }); 112 | }) 113 | .finally(() => { 114 | setRemoteResultVisible(true); 115 | }); 116 | }; 117 | 118 | const onTurnOn = () => { 119 | const promise = RemoteCommunicationModule.wakeUp( 120 | connection.lanConnection.macAddress, 121 | ); 122 | handleRemoteActionPromise(promise, 'Successfully sent Wake on LAN package'); 123 | }; 124 | const onTurnOff = () => { 125 | const {sshConnection} = connection; 126 | if (!sshConnection) { 127 | return; 128 | } 129 | const {domain, port, username, password} = sshConnection; 130 | const promise = RemoteCommunicationModule.powerOff( 131 | domain, 132 | port, 133 | username, 134 | password, 135 | timeout, 136 | ); 137 | handleRemoteActionPromise(promise); 138 | }; 139 | const onReboot = () => { 140 | const {sshConnection} = connection; 141 | if (!sshConnection) { 142 | return; 143 | } 144 | const {domain, port, username, password} = sshConnection; 145 | const promise = RemoteCommunicationModule.reboot( 146 | domain, 147 | port, 148 | username, 149 | password, 150 | timeout, 151 | ); 152 | handleRemoteActionPromise(promise); 153 | }; 154 | 155 | const onConfigure = () => { 156 | navigation.navigate('edit', connection); 157 | }; 158 | 159 | return ( 160 | <> 161 | 162 | 163 | 164 | 165 | 166 | {connection.name} 167 | {connection.lanConnection.macAddress} 168 | {loading && } 169 | {!loading && ( 170 | <> 171 | 172 | {connection.sshConnection.username}@ 173 | {connection.sshConnection.domain}: 174 | {connection.sshConnection.port} 175 | 176 | 177 | {canExecuteAsRoot ? ( 178 | 179 | Logged with sudo 180 | 181 | ) : ( 182 | 183 | Log in failed 184 | {canExecuteError && `: ${canExecuteError}`} 185 | 186 | )} 187 | 188 | )} 189 | 190 | 191 | 192 | 193 | 198 | Turn On 199 | 200 | 205 | Turn Off 206 | 207 | 212 | Reboot 213 | 214 | 218 | Configure 219 | 220 | 221 | 222 | 223 | setRemoteResultVisible(false)}> 227 | {' '} 228 | {remoteResult?.message} 229 | 230 | 231 | ); 232 | } 233 | 234 | const styles = StyleSheet.create({ 235 | container: { 236 | flexDirection: 'column', 237 | padding: 8, 238 | }, 239 | buttonContainer: { 240 | flexWrap: 'wrap', 241 | flexDirection: 'row', 242 | justifyContent: 'center', 243 | }, 244 | connectionDetail: { 245 | padding: 8, 246 | }, 247 | successText: { 248 | color: '#35bf5c', 249 | }, 250 | errorText: { 251 | color: '#ea4335', 252 | }, 253 | }); 254 | -------------------------------------------------------------------------------- /src/Connection/ConnectionEdit.tsx: -------------------------------------------------------------------------------- 1 | import React, {useState} from 'react'; 2 | import {Linking, ScrollView, StyleSheet, View} from 'react-native'; 3 | import { 4 | StackNavigationOptions, 5 | StackNavigationProp, 6 | } from '@react-navigation/stack'; 7 | import {RouteProp} from '@react-navigation/native'; 8 | import {RootStackParamList} from '../Main'; 9 | import {Connection} from './Connection'; 10 | import {Button, HelperText, TextInput} from 'react-native-paper'; 11 | import { 12 | deleteConnection, 13 | insertOrUpdateConnection, 14 | } from './ConnectionStoreHelper'; 15 | import ConnectionItem from './ConnectionItem'; 16 | import ColorPicker from '../Component/ColorPicker'; 17 | import IconPicker from '../Component/IconPicker'; 18 | import {Text} from 'react-native'; 19 | 20 | type EditScreenNavigationProp = StackNavigationProp; 21 | type EditScreenRouteProp = RouteProp; 22 | 23 | interface Props { 24 | navigation: EditScreenNavigationProp; 25 | route: EditScreenRouteProp; 26 | } 27 | 28 | export const ConnectionEditSetTitle = ({ 29 | route, 30 | }: Props): StackNavigationOptions => { 31 | const connection: Connection | undefined = route.params; 32 | return { 33 | title: 34 | connection === undefined 35 | ? 'Create Connection' 36 | : `Edit ${connection.name}`, 37 | }; 38 | }; 39 | 40 | function hasOnlyDigits(value: string) { 41 | return /^\d+$/.test(value); 42 | } 43 | 44 | export default function ConnectionEdit(props: Props) { 45 | const {route, navigation} = props; 46 | const editedConnection = route.params; 47 | const [, setSaveLoading] = useState(false); 48 | const initialConnection: Connection = { 49 | id: Date.now(), 50 | color: '#0476E9', 51 | icon: 'server', 52 | name: '', 53 | lanConnection: { 54 | macAddress: '', 55 | }, 56 | sshConnection: { 57 | username: '', 58 | port: 22, 59 | password: '', 60 | domain: '', 61 | }, 62 | }; 63 | 64 | async function onSave() { 65 | setSaveLoading(true); 66 | await insertOrUpdateConnection(connection); 67 | setSaveLoading(false); 68 | navigation.goBack(); 69 | } 70 | 71 | async function onDelete() { 72 | await deleteConnection(connection); 73 | navigation.goBack(); 74 | navigation.goBack(); 75 | } 76 | 77 | const [connection, setConnection] = React.useState( 78 | editedConnection || initialConnection, 79 | ); 80 | 81 | const isInitialConnection = initialConnection.id === connection.id; 82 | const isMacAddressValid = 83 | connection.lanConnection.macAddress.match( 84 | /([0-9A-F]{2}[:]){5}([0-9A-F]{2})/, 85 | ) !== null; 86 | const showMacAddressError = !isInitialConnection && !isMacAddressValid; 87 | const isSaveDisabled = !isMacAddressValid; 88 | 89 | return ( 90 | 91 | 92 | setConnection({...connection, icon: icon})} 95 | component={} 96 | /> 97 | 100 | setConnection({...connection, color: color}) 101 | } 102 | /> 103 | setConnection({...connection, name: text})} 108 | /> 109 | 115 | setConnection({ 116 | ...connection, 117 | lanConnection: {...connection.lanConnection, macAddress: text}, 118 | }) 119 | } 120 | /> 121 | {showMacAddressError && ( 122 | 123 | The MAC Address needs to be in the format A1:B2:C3:D4:E5:F6. 124 | 125 | )} 126 | 127 | Wake On LAN Needs to be enabled in the BIOS of the machine you want to 128 | power on!{' '} 129 | 132 | Linking.openURL( 133 | 'https://github.com/BootBoi/android-app/#power-on', 134 | ) 135 | }> 136 | Read more here. 137 | 138 | 139 | 144 | setConnection({ 145 | ...connection, 146 | sshConnection: {...connection.sshConnection, domain: text}, 147 | }) 148 | } 149 | /> 150 | 155 | setConnection({ 156 | ...connection, 157 | sshConnection: {...connection.sshConnection, username: text}, 158 | }) 159 | } 160 | /> 161 | 162 | This SSH User needs have sudo access to whoami, poweroff and reboot! 163 | {' '} 164 | 167 | Linking.openURL( 168 | 'https://github.com/BootBoi/android-app/#power-off--reboot', 169 | ) 170 | }> 171 | Read more here. 172 | 173 | 174 | 180 | setConnection({ 181 | ...connection, 182 | sshConnection: {...connection.sshConnection, password: text}, 183 | }) 184 | } 185 | /> 186 | { 191 | if (!hasOnlyDigits(text)) { 192 | return; 193 | } 194 | const number = parseInt(text, 10); 195 | setConnection({ 196 | ...connection, 197 | sshConnection: { 198 | ...connection.sshConnection, 199 | port: number, 200 | }, 201 | }); 202 | }} 203 | /> 204 | 205 | 214 | {editedConnection && ( 215 | 223 | )} 224 | 225 | 226 | 227 | ); 228 | } 229 | 230 | const styles = StyleSheet.create({ 231 | container: { 232 | flexDirection: 'column', 233 | padding: 8, 234 | }, 235 | buttonContainer: { 236 | flexDirection: 'row', 237 | justifyContent: 'center', 238 | }, 239 | button: { 240 | width: '45%', 241 | margin: 8, 242 | }, 243 | input: { 244 | margin: 8, 245 | }, 246 | link: { 247 | textDecorationLine: 'underline', 248 | }, 249 | }); 250 | -------------------------------------------------------------------------------- /src/Connection/ConnectionItem.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import {Connection} from './Connection'; 3 | import {Card, Paragraph, Title} from 'react-native-paper'; 4 | import {StyleSheet, View} from 'react-native'; 5 | import Icon from 'react-native-vector-icons/FontAwesome5'; 6 | 7 | interface Props { 8 | connection: Connection; 9 | onClick?: () => void; 10 | } 11 | 12 | export default function ConnectionItem(props: Props) { 13 | const {connection, onClick} = props; 14 | const onTouchEnd = () => { 15 | onClick?.(); 16 | return true; 17 | }; 18 | 19 | const {cover} = StyleSheet.create({ 20 | cover: { 21 | backgroundColor: connection.color, 22 | alignItems: 'center', 23 | justifyContent: 'center', 24 | paddingTop: 16, 25 | paddingBottom: 16, 26 | }, 27 | }); 28 | return ( 29 | 30 | 31 | 32 | 33 | 34 | 35 | {connection.name} 36 | 37 | {connection.description || connection.lanConnection.macAddress} 38 | 39 | 40 | 41 | 42 | ); 43 | } 44 | 45 | const styles = StyleSheet.create({ 46 | container: { 47 | padding: 8, 48 | width: 160, 49 | }, 50 | content: { 51 | paddingTop: 8, 52 | }, 53 | coverIcon: { 54 | fontSize: 40, 55 | color: '#ffffff', 56 | }, 57 | }); 58 | -------------------------------------------------------------------------------- /src/Connection/ConnectionList.tsx: -------------------------------------------------------------------------------- 1 | import React, {useEffect, useState} from 'react'; 2 | import {ScrollView, StyleSheet, View} from 'react-native'; 3 | import {Connection} from './Connection'; 4 | import ConnectionItem from './ConnectionItem'; 5 | import {RootStackParamList} from '../Main'; 6 | import {StackNavigationProp} from '@react-navigation/stack'; 7 | import {getStoredConnections} from './ConnectionStoreHelper'; 8 | 9 | const addConnectionItem: Connection = { 10 | id: 0, 11 | name: 'Create', 12 | description: 'Connection', 13 | // @ts-ignore 14 | color: '#1fb14d', 15 | // @ts-ignore 16 | icon: 'plus', 17 | sshConnection: { 18 | domain: '', 19 | password: '', 20 | username: '', 21 | port: 0, 22 | }, 23 | lanConnection: { 24 | macAddress: '', 25 | }, 26 | }; 27 | 28 | type ListScreenNavigationProp = StackNavigationProp; 29 | 30 | interface Props { 31 | navigation: ListScreenNavigationProp; 32 | } 33 | 34 | interface State { 35 | connections: Connection[]; 36 | } 37 | 38 | export default function ConnectionList(props: Props) { 39 | const initialState: State = { 40 | connections: [], 41 | }; 42 | const [state, setState] = useState(initialState); 43 | const {navigation} = props; 44 | const {connections} = state; 45 | 46 | useEffect(() => { 47 | return navigation.addListener('focus', () => { 48 | async function loadConnections() { 49 | const storedConnections = await getStoredConnections(); 50 | setState({connections: storedConnections}); 51 | } 52 | 53 | loadConnections(); 54 | }); 55 | }, [navigation]); 56 | 57 | return ( 58 | 59 | 60 | {connections.map((connection) => ( 61 | navigation.navigate('detail', connection)} 65 | /> 66 | ))} 67 | navigation.navigate('edit')} 70 | /> 71 | 72 | 73 | ); 74 | } 75 | 76 | const styles = StyleSheet.create({ 77 | container: { 78 | flexWrap: 'wrap', 79 | flexDirection: 'row', 80 | justifyContent: 'center', 81 | padding: 8, 82 | }, 83 | }); 84 | -------------------------------------------------------------------------------- /src/Connection/ConnectionStoreHelper.ts: -------------------------------------------------------------------------------- 1 | import * as SecureStore from 'expo-secure-store'; 2 | import {Connection} from './Connection'; 3 | 4 | const STORE_KEY = 'CONNECTIONS'; 5 | 6 | export async function getStoredConnections(): Promise { 7 | const storedConnections = await SecureStore.getItemAsync(STORE_KEY); 8 | return !storedConnections ? [] : JSON.parse(storedConnections); 9 | } 10 | 11 | function getIndexOfConnection( 12 | storedConnections: Connection[], 13 | connection: Connection, 14 | ): number { 15 | const connectionInStore = storedConnections.find( 16 | (c) => c.id === connection.id, 17 | ); 18 | if (!connectionInStore) { 19 | return -1; 20 | } 21 | return storedConnections.indexOf(connectionInStore); 22 | } 23 | 24 | export async function getStoredConnection( 25 | id: number, 26 | ): Promise { 27 | const storedConnections = await getStoredConnections(); 28 | const connectionInStore = storedConnections.find((c) => c.id === id); 29 | return connectionInStore || null; 30 | } 31 | 32 | export async function insertOrUpdateConnection(connection: Connection) { 33 | const storedConnections = await getStoredConnections(); 34 | const index = getIndexOfConnection(storedConnections, connection); 35 | if (index === -1) { 36 | storedConnections.push(connection); 37 | } else { 38 | storedConnections[index] = connection; 39 | } 40 | await SecureStore.setItemAsync(STORE_KEY, JSON.stringify(storedConnections)); 41 | } 42 | 43 | export async function deleteConnection(connection: Connection) { 44 | const storedConnections = await getStoredConnections(); 45 | const index = getIndexOfConnection(storedConnections, connection); 46 | if (index === -1) { 47 | return; 48 | } 49 | storedConnections.splice(index, 1); 50 | await SecureStore.setItemAsync(STORE_KEY, JSON.stringify(storedConnections)); 51 | } 52 | -------------------------------------------------------------------------------- /src/Main.tsx: -------------------------------------------------------------------------------- 1 | import ConnectionList from './Connection/ConnectionList'; 2 | import {StyleSheet, View} from 'react-native'; 3 | import React from 'react'; 4 | import ConnectionEdit, { 5 | ConnectionEditSetTitle, 6 | } from './Connection/ConnectionEdit'; 7 | import ConnectionDetail, { 8 | ConnectionDetailSetTitle, 9 | } from './Connection/ConnectionDetail'; 10 | import {createStackNavigator} from '@react-navigation/stack'; 11 | import {Connection} from './Connection/Connection'; 12 | 13 | export type RootStackParamList = { 14 | list: undefined; 15 | edit: Connection | undefined; 16 | detail: Connection; 17 | }; 18 | 19 | const Stack = createStackNavigator(); 20 | 21 | export default function Main() { 22 | return ( 23 | 24 | 25 | 30 | 35 | 40 | 41 | 42 | ); 43 | } 44 | 45 | const styles = StyleSheet.create({ 46 | container: { 47 | flex: 1, 48 | }, 49 | }); 50 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es6"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | "skipLibCheck": true /* Skip type checking of declaration files. */ 49 | 50 | /* Source Map Options */ 51 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 52 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 53 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 54 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 55 | 56 | /* Experimental Options */ 57 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 58 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 59 | }, 60 | "exclude": [ 61 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 62 | ] 63 | } 64 | --------------------------------------------------------------------------------