From 4faf81e7516ab964e21205623f6d972978554740 Mon Sep 17 00:00:00 2001 From: Marya Doery Date: Fri, 20 Mar 2020 08:46:54 -0400 Subject: [PATCH] Initial commit, starting work with a simple app with a button and text. --- .gitignore | 59 ++ App.js | 48 ++ android/app/_BUCK | 55 ++ android/app/build.gradle | 201 +++++ android/app/build_defs.bzl | 19 + android/app/debug.keystore | Bin 0 -> 2257 bytes android/app/proguard-rules.pro | 10 + android/app/src/debug/AndroidManifest.xml | 8 + android/app/src/main/AndroidManifest.xml | 26 + .../com/audioplayerdemo/MainActivity.java | 15 + .../com/audioplayerdemo/MainApplication.java | 74 ++ .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3056 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5024 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2096 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 2858 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4569 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7098 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6464 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 10676 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9250 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 15523 bytes android/app/src/main/res/values/strings.xml | 3 + android/app/src/main/res/values/styles.xml | 9 + android/build.gradle | 38 + android/gradle.properties | 21 + android/gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 55616 bytes .../gradle/wrapper/gradle-wrapper.properties | 5 + android/gradlew | 188 +++++ android/gradlew.bat | 100 +++ android/settings.gradle | 3 + app.json | 4 + index.js | 9 + ios/AudioPlayerDemo-tvOS/Info.plist | 53 ++ ios/AudioPlayerDemo-tvOSTests/Info.plist | 24 + ios/AudioPlayerDemo.xcodeproj/project.pbxproj | 782 ++++++++++++++++++ .../xcschemes/AudioPlayerDemo-tvOS.xcscheme | 129 +++ .../xcschemes/AudioPlayerDemo.xcscheme | 129 +++ ios/AudioPlayerDemo/AppDelegate.h | 15 + ios/AudioPlayerDemo/AppDelegate.m | 42 + .../Base.lproj/LaunchScreen.xib | 42 + .../AppIcon.appiconset/Contents.json | 38 + .../Images.xcassets/Contents.json | 6 + ios/AudioPlayerDemo/Info.plist | 57 ++ ios/AudioPlayerDemo/main.m | 16 + .../AudioPlayerDemoTests.m | 72 ++ ios/AudioPlayerDemoTests/Info.plist | 24 + ios/Podfile | 53 ++ 47 files changed, 2377 insertions(+) create mode 100644 .gitignore create mode 100644 App.js create mode 100644 android/app/_BUCK create mode 100644 android/app/build.gradle create mode 100644 android/app/build_defs.bzl create mode 100644 android/app/debug.keystore create mode 100644 android/app/proguard-rules.pro create mode 100644 android/app/src/debug/AndroidManifest.xml create mode 100644 android/app/src/main/AndroidManifest.xml create mode 100644 android/app/src/main/java/com/audioplayerdemo/MainActivity.java create mode 100644 android/app/src/main/java/com/audioplayerdemo/MainApplication.java create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 android/app/src/main/res/values/strings.xml create mode 100644 android/app/src/main/res/values/styles.xml create mode 100644 android/build.gradle create mode 100644 android/gradle.properties create mode 100644 android/gradle/wrapper/gradle-wrapper.jar create mode 100644 android/gradle/wrapper/gradle-wrapper.properties create mode 100755 android/gradlew create mode 100644 android/gradlew.bat create mode 100644 android/settings.gradle create mode 100644 app.json create mode 100644 index.js create mode 100644 ios/AudioPlayerDemo-tvOS/Info.plist create mode 100644 ios/AudioPlayerDemo-tvOSTests/Info.plist create mode 100644 ios/AudioPlayerDemo.xcodeproj/project.pbxproj create mode 100644 ios/AudioPlayerDemo.xcodeproj/xcshareddata/xcschemes/AudioPlayerDemo-tvOS.xcscheme create mode 100644 ios/AudioPlayerDemo.xcodeproj/xcshareddata/xcschemes/AudioPlayerDemo.xcscheme create mode 100644 ios/AudioPlayerDemo/AppDelegate.h create mode 100644 ios/AudioPlayerDemo/AppDelegate.m create mode 100644 ios/AudioPlayerDemo/Base.lproj/LaunchScreen.xib create mode 100644 ios/AudioPlayerDemo/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 ios/AudioPlayerDemo/Images.xcassets/Contents.json create mode 100644 ios/AudioPlayerDemo/Info.plist create mode 100644 ios/AudioPlayerDemo/main.m create mode 100644 ios/AudioPlayerDemoTests/AudioPlayerDemoTests.m create mode 100644 ios/AudioPlayerDemoTests/Info.plist create mode 100644 ios/Podfile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad572e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,59 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# BUCK +buck-out/ +\.buckd/ +*.keystore +!debug.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +*/fastlane/report.xml +*/fastlane/Preview.html +*/fastlane/screenshots + +# Bundle artifact +*.jsbundle + +# CocoaPods +/ios/Pods/ diff --git a/App.js b/App.js new file mode 100644 index 0000000..ac408bd --- /dev/null +++ b/App.js @@ -0,0 +1,48 @@ +/** + * Start work on simple demo of https://www.npmjs.com/package/react-native-sound + */ + +import React from 'react'; +import { + StyleSheet, + View, + Text, + Button +} from 'react-native'; + +import { + Colors +} from 'react-native/Libraries/NewAppScreen'; + +//import { SoundPlayer } from './utils/SoundPlayer'; +//const Sound = require('react-native-sound'); + +class App extends React.Component { + onPlayPress() { + console.log('clicked'); + console.log('HELLO!'); + console.log(Sound); + } + + render() { + return ( + + Click to Play1 +