Skip to content

Commit 5478966

Browse files
Init commit
1 parent 9ab3c85 commit 5478966

Some content is hidden

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

78 files changed

+12657
-0
lines changed

.buckconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

.gitignore

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
project.xcworkspace
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
34+
# node.js
35+
#
36+
node_modules/
37+
npm-debug.log
38+
yarn-error.log
39+
40+
# BUCK
41+
buck-out/
42+
\.buckd/
43+
*.keystore
44+
!debug.keystore
45+
46+
# fastlane
47+
#
48+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
49+
# screenshots whenever they are needed.
50+
# For more information about the recommended setup visit:
51+
# https://docs.fastlane.tools/best-practices/source-control/
52+
53+
*/fastlane/report.xml
54+
*/fastlane/Preview.html
55+
*/fastlane/screenshots
56+
57+
# Bundle artifacts
58+
*.jsbundle
59+
60+
# CocoaPods
61+
/ios/Pods/
62+
63+
# Expo
64+
.expo/*
65+
web-build/

App.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { StatusBar } from "expo-status-bar";
2+
import React from "react";
3+
import { StyleSheet, Text, View } from "react-native";
4+
import tail from "mr-min-tail-css/react-native";
5+
import { ContainerView } from "./styles";
6+
import { PersistGate } from "redux-persist/es/integration/react";
7+
import Counter from "~/components/Common/screens/Counter";
8+
import FundList from "~/components/Pages/fund/FundList";
9+
import { store, persistor } from "~/redux/store/store";
10+
import { Provider } from "react-redux";
11+
import { ThemeProvider } from "styled-components";
12+
import defaultTheme from "~/constants/theme";
13+
import { fundList } from "~/mock/fundList";
14+
15+
export default function App() {
16+
return (
17+
<ContainerView>
18+
<Provider store={store}>
19+
<PersistGate loading={null} persistor={persistor}>
20+
<ThemeProvider theme={defaultTheme}>
21+
<Text style={tail.fontBold}>
22+
Open up App.js to start working on your app2!
23+
</Text>
24+
<Counter />
25+
<FundList data={fundList} />
26+
<StatusBar style="auto" />
27+
</ThemeProvider>
28+
</PersistGate>
29+
</Provider>
30+
</ContainerView>
31+
);
32+
}
33+
34+
const styles = StyleSheet.create({
35+
container: {
36+
flex: 1,
37+
backgroundColor: "#fff",
38+
alignItems: "center",
39+
justifyContent: "center",
40+
},
41+
});

__tests__/App.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import App from '../App';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders correctly', () => {
9+
renderer.create(<App />);
10+
});

android/app/BUCK

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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.test",
39+
)
40+
41+
android_resource(
42+
name = "res",
43+
package = "com.test",
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+
)

0 commit comments

Comments
 (0)