Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.flowconfig
#	.gitignore
#	App.js
#	android/app/build.gradle
#	android/app/proguard-rules.pro
#	android/app/src/main/AndroidManifest.xml
#	android/app/src/main/res/values/strings.xml
#	android/app/src/main/res/values/styles.xml
#	android/build.gradle
#	android/gradle.properties
#	android/gradle/wrapper/gradle-wrapper.jar
#	android/gradle/wrapper/gradle-wrapper.properties
#	android/gradlew
#	android/gradlew.bat
#	android/settings.gradle
#	app.json
#	application/components/header-pager/pager.container.js
#	application/components/navHeader/index.js
#	application/components/parallaxStickView/index.js
#	application/components/scrollTabView/index.js
#	application/components/searchHeader/index.js
#	application/components/videoPlayer/index.js
#	application/components/wave/index.js
#	application/index.js
#	application/stores/index.js
#	application/stores/store.account.js
#	application/stores/store.app.js
#	application/utils/global.js
#	application/utils/tool.js
#	application/views/account/index.js
#	application/views/find/Host.js
#	application/views/find/model/dj.model.js
#	application/views/find/model/personalized.model.js
#	application/views/find/model/topList.model.js
#	application/views/friends/index.js
#	application/views/friends/model/friends.model.js
#	application/views/index.js
#	application/views/login/index.js
#	application/views/mine/MineSection.js
#	application/views/mine/index.js
#	application/views/video/model/mv.model.js
#	application/views/video/model/topList.model.js
#	application/views/video/topList/index.js
#	babel.config.js
#	index.js
#	ios/Podfile
#	package.json
  • Loading branch information
DaiYz committed Sep 24, 2020
2 parents 6fbdc06 + 69ea5ed commit 1cbd06d
Show file tree
Hide file tree
Showing 78 changed files with 17,902 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native-community',
};
61 changes: 61 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

<<<<<<< HEAD
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

Expand All @@ -18,20 +19,40 @@

; Ignore metro
.*/node_modules/metro/.*
=======
; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
>>>>>>> develop

[include]

[libs]
<<<<<<< HEAD
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/
=======
node_modules/react-native/interface.js
node_modules/react-native/flow/
>>>>>>> develop

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

<<<<<<< HEAD
module.system=haste
module.system.haste.use_name_reducers=true
# get basename
Expand All @@ -55,16 +76,56 @@ module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js
=======
module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

munge_underscores=true

module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
>>>>>>> develop

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

<<<<<<< HEAD
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.86.0
=======
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.122.0
>>>>>>> develop
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
# yarn
yarn.lock

Expand All @@ -7,6 +8,8 @@ Pods/
ios/build/
ios/Podfile.lock

=======
>>>>>>> develop
# OSX
#
.DS_Store
Expand All @@ -29,7 +32,10 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
<<<<<<< HEAD
project.xcworkspace
=======
>>>>>>> develop

# Android/IntelliJ
#
Expand All @@ -49,6 +55,10 @@ yarn-error.log
buck-out/
\.buckd/
*.keystore
<<<<<<< HEAD
=======
!debug.keystore
>>>>>>> develop

# fastlane
#
Expand All @@ -63,3 +73,9 @@ buck-out/

# Bundle artifact
*.jsbundle
<<<<<<< HEAD
=======

# CocoaPods
/ios/Pods/
>>>>>>> develop
6 changes: 6 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
bracketSpacing: false,
jsxBracketSameLine: true,
singleQuote: true,
trailingComma: 'all',
};
112 changes: 112 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* https://github.com/facebook/react-native
*
* @format
<<<<<<< HEAD
* @flow
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/
Expand Down Expand Up @@ -48,3 +49,114 @@ const styles = StyleSheet.create({
marginBottom: 5,
},
});
=======
* @flow strict-local
*/

import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';

import {
Header,
LearnMoreLinks,
Colors,
DebugInstructions,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';

const App: () => React$Node = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
)}
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.js</Text> to change this
screen and then come back to see your edits.
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>See Your Changes</Text>
<Text style={styles.sectionDescription}>
<ReloadInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Debug</Text>
<Text style={styles.sectionDescription}>
<DebugInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Learn More</Text>
<Text style={styles.sectionDescription}>
Read the docs to discover what to do next:
</Text>
</View>
<LearnMoreLinks />
</View>
</ScrollView>
</SafeAreaView>
</>
);
};

const styles = StyleSheet.create({
scrollView: {
backgroundColor: Colors.lighter,
},
engine: {
position: 'absolute',
right: 0,
},
body: {
backgroundColor: Colors.white,
},
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
color: Colors.black,
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
color: Colors.dark,
},
highlight: {
fontWeight: '700',
},
footer: {
color: Colors.dark,
fontSize: 12,
fontWeight: '600',
padding: 4,
paddingRight: 12,
textAlign: 'right',
},
});

export default App;
>>>>>>> develop
14 changes: 14 additions & 0 deletions __tests__/App-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* @format
*/

import 'react-native';
import React from 'react';
import App from '../App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
renderer.create(<App />);
});
55 changes: 55 additions & 0 deletions android/app/_BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# To learn about Buck see [Docs](https://buckbuild.com/).
# To run your application with Buck:
# - install Buck
# - `npm start` - to start the packager
# - `cd android`
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
# - `buck install -r android/app` - compile, install and run application
#

load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")

lib_deps = []

create_aar_targets(glob(["libs/*.aar"]))

create_jar_targets(glob(["libs/*.jar"]))

android_library(
name = "all-libs",
exported_deps = lib_deps,
)

android_library(
name = "app-code",
srcs = glob([
"src/main/java/**/*.java",
]),
deps = [
":all-libs",
":build_config",
":res",
],
)

android_build_config(
name = "build_config",
package = "com.music",
)

android_resource(
name = "res",
package = "com.music",
res = "src/main/res",
)

android_binary(
name = "app",
keystore = "//android/keystores:debug",
manifest = "src/main/AndroidManifest.xml",
package_type = "debug",
deps = [
":app-code",
],
)
Loading

0 comments on commit 1cbd06d

Please sign in to comment.