Skip to content

Commit be1be63

Browse files
committed
New audio player, new tuning
1 parent d5f669a commit be1be63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+440
-19440
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ module.exports = {
1313
'object-curly-newline': 'off'
1414
},
1515
'globals': {
16-
"fetch": false
16+
'fetch': false
1717
}
1818
}

README.md

+8-6

android/app/build.gradle

+7-14
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,14 @@ android {
9797
compileSdkVersion rootProject.ext.compileSdkVersion
9898

9999
signingConfigs {
100-
// release {
101-
// if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
102-
// storeFile file(MYAPP_RELEASE_STORE_FILE)
103-
// storePassword MYAPP_RELEASE_STORE_PASSWORD
104-
// keyAlias MYAPP_RELEASE_KEY_ALIAS
105-
// keyPassword MYAPP_RELEASE_KEY_PASSWORD
106-
// }
107100
release {
108101
// PUT KEY AND PASSWORD HERE
109-
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
110-
storeFile file(MYAPP_RELEASE_STORE_FILE)
111-
storePassword MYAPP_RELEASE_STORE_PASSWORD
112-
keyAlias MYAPP_RELEASE_KEY_ALIAS
113-
keyPassword MYAPP_RELEASE_KEY_PASSWORD
114-
}
102+
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
103+
storeFile file(MYAPP_RELEASE_STORE_FILE)
104+
storePassword MYAPP_RELEASE_STORE_PASSWORD
105+
keyAlias MYAPP_RELEASE_KEY_ALIAS
106+
keyPassword MYAPP_RELEASE_KEY_PASSWORD
107+
}
115108
}
116109
}
117110

@@ -182,7 +175,7 @@ configurations.all {
182175
}
183176

184177
dependencies {
185-
implementation project(':react-native-sound')
178+
implementation project(':react-native-webview')
186179
implementation project(':@react-native-community_slider')
187180
implementation project(':react-native-fs')
188181
implementation "org.webkit:android-jsc:r241213"

android/app/src/main/java/com/reactnativesongbook/MainApplication.java

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6-
import com.zmxv.RNSound.RNSoundPackage;
6+
import com.reactnativecommunity.webview.RNCWebViewPackage;
77
import com.reactnativecommunity.slider.ReactSliderPackage;
88
import com.rnfs.RNFSPackage;
99
import com.horcrux.svg.SvgPackage;
@@ -14,6 +14,8 @@
1414
import com.facebook.react.shell.MainReactPackage;
1515
import com.facebook.soloader.SoLoader;
1616

17+
import android.webkit.WebView; // for webview debugging
18+
1719
import com.reactnativenavigation.NavigationApplication;
1820
import com.reactnativenavigation.react.NavigationReactNativeHost;
1921
import com.reactnativenavigation.react.ReactGateway;
@@ -22,6 +24,13 @@
2224
import java.util.List;
2325

2426
public class MainApplication extends NavigationApplication {
27+
28+
// for webview debugging
29+
@Override
30+
public void onCreate() {
31+
super.onCreate();
32+
WebView.setWebContentsDebuggingEnabled(true);
33+
}
2534

2635
@Override
2736
protected ReactGateway createReactGateway() {
@@ -48,7 +57,7 @@ protected List<ReactPackage> getPackages() {
4857
new ReactNativeDocumentPicker(),
4958
new RNFSPackage(),
5059
new ReactSliderPackage(),
51-
new RNSoundPackage()
60+
new RNCWebViewPackage()
5261
// eg. new VectorIconsPackage()
5362
);
5463
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.reactnativesongbook.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<Package> getPackageList() {
9+
return Arrays.<Package>asList(
10+
// new expo.modules.av.AVPackage(),
11+
// new expo.modules.constants.ConstantsPackage(),
12+
// new expo.modules.filesystem.FileSystemPackage(),
13+
// new expo.modules.imageloader.ImageLoaderPackage(),
14+
// new expo.modules.permissions.PermissionsPackage()
15+
);
16+
}
17+
}

android/app/src/main/res/raw/a3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/a4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/a5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/as3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/as4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/as5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/b3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/b4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/b5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/c3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/c4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/c5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/c6.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/cs3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/cs4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/cs5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/d3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/d4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/d5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/ds3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/ds4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/ds5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/e3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/e4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/e5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/f3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/f4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/f5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/fs3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/fs4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/fs5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/g3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/g4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/g5.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/gs3.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/gs4.wav

-60.8 KB
Binary file not shown.

android/app/src/main/res/raw/gs5.wav

-60.8 KB
Binary file not shown.

android/settings.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rootProject.name = 'reactnativesongbook'
2-
include ':react-native-sound'
3-
project(':react-native-sound').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sound/android')
2+
include ':react-native-webview'
3+
project(':react-native-webview').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-webview/android')
44
include ':@react-native-community_slider'
55
project(':@react-native-community_slider').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/slider/android')
66
include ':react-native-fs'

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
[
55
'inline-import',
66
{
7-
extensions: ['.abc']
7+
extensions: ['.jstxt', '.abc']
88
}
99
],
1010
],

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const textIcon = require('./icons/text_topmargin_gray.png');
1111

1212
YellowBox.ignoreWarnings([
1313
'Require cycle:',
14-
'Remote debugger'
14+
'Remote debugger',
15+
// 'pure function',
1516
]);
1617

1718
RegisterScreens();
@@ -26,7 +27,7 @@ Navigation.events().registerAppLaunchedListener(() => {
2627
animate: false,
2728
backgroundColor: Colors.bottomTabsBackground,
2829
currentTabIndex: 2,
29-
drawBehind: true
30+
drawBehind: true,
3031
},
3132
},
3233
children: [{
@@ -48,7 +49,7 @@ Navigation.events().registerAppLaunchedListener(() => {
4849
fontFamily: Fonts.default,
4950
fontSize: 14,
5051
text: 'Current Tune',
51-
icon: musicIcon, // credit "feathericons"
52+
icon: musicIcon, // credit "feathericons",
5253
}
5354
}
5455
},

0 commit comments

Comments
 (0)