Skip to content

Commit

Permalink
release 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Louie Jay De La Cruz committed May 3, 2024
1 parent 7b32f4c commit 1952211
Show file tree
Hide file tree
Showing 16 changed files with 619 additions and 208 deletions.
16 changes: 13 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ react {
/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
def enableProguardInReleaseBuilds = false
def enableProguardInReleaseBuilds = true

/**
* The preferred build flavor of JavaScriptCore (JSC)
Expand All @@ -81,6 +81,7 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
resConfigs "en"
}
signingConfigs {
debug {
Expand All @@ -89,6 +90,14 @@ android {
keyAlias 'androiddebugkey'
keyPassword 'android'
}
release {
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) {
storeFile file(MYAPP_UPLOAD_STORE_FILE)
storePassword MYAPP_UPLOAD_STORE_PASSWORD
keyAlias MYAPP_UPLOAD_KEY_ALIAS
keyPassword MYAPP_UPLOAD_KEY_PASSWORD
}
}
}
buildTypes {
debug {
Expand All @@ -97,9 +106,10 @@ android {
release {
// Caution! In production, you need to generate your own keystore file.
// see https://reactnative.dev/docs/signed-apk-android.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
shrinkResources true
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
}
}
}
Expand Down
43 changes: 22 additions & 21 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:name=".MainApplication"
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
5 changes: 5 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@ newArchEnabled=false
# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true

MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=Password!23
MYAPP_UPLOAD_KEY_PASSWORD=Password!23
101 changes: 70 additions & 31 deletions components/about.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,65 @@
import React from 'react';
import {ImageBackground, ScrollView, View} from 'react-native';
import {Layout, StyleService, Text, useStyleSheet} from '@ui-kitten/components';
import Markdown from 'react-native-markdown-display';
import {Divider} from './divider';
import {aboutAtom} from '../jotai';
import {useAtom} from 'jotai';

const logoUrl = 'https://iili.io/JSblB1V.png';

const rules = {
heading1: (node, children) => (
<Text key={node.key} category="h1">
{children}
</Text>
),
heading2: (node, children) => (
<Text key={node.key} category="h2">
{children}
</Text>
),
heading3: (node, children) => (
<Text key={node.key} category="h3">
{children}
</Text>
),
heading4: (node, children) => (
<Text key={node.key} category="h4">
{children}
</Text>
),
heading5: (node, children) => (
<Text key={node.key} category="h5">
{children}
</Text>
),
heading6: (node, children) => (
<Text key={node.key} category="h6">
{children}
</Text>
),
hr: node => <Divider key={node.key} styles={{backgroundColor: '#ccc'}} />,
strong: (node, children) => <Text category="s1">{children}</Text>,
text: (node, children) => <Text key={node.key}>{node.content}</Text>,
textgroup: (node, children) => <Text key={node.key}>{children}</Text>,
};

export const About = () => {
const styles = useStyleSheet(themedStyles);
const [{data, isPending, isError}] = useAtom(aboutAtom);

return (
<Layout style={styles.container} level="1">
<Layout style={styles.container} level="2">
<ScrollView contentContainerStyle={styles.contentContainer}>
<View style={{flex: 1, alignItems: 'center'}}>
<Layout style={styles.logoContainer} level="1">
<ImageBackground style={styles.logo} source={{uri: logoUrl}} />
</View>
</Layout>

<Layout style={styles.descriptionContainer} level="2">
<Text style={styles.aboutLabel} category="s1">
About The System
</Text>
<Text appearance="hint">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
nulla dui, molestie in mi id, consectetur rhoncus massa. Vivamus non
fermentum nulla. Cras a semper metus. Nullam auctor facilisis
libero, sed sodales lorem volutpat ut. Integer accumsan sapien
purus, at elementum mauris consectetur eget. Phasellus mauris erat,
tincidunt a imperdiet quis, tempus quis lacus. Nulla urna tellus,
faucibus pulvinar dolor at, pulvinar efficitur lectus. Morbi non
neque rutrum, rutrum est ac, rutrum enim. Praesent lacus massa,
interdum pharetra dapibus sit amet, iaculis in odio. Aenean sed odio
velit. Quisque commodo, metus et pellentesque pretium, erat mauris
mattis neque, ut blandit velit massa laoreet quam. Class aptent
taciti sociosqu ad litora torquent per conubia nostra, per inceptos
himenaeos. Integer pharetra mollis erat, et ullamcorper ipsum ornare
eu.{'\n\n'}Interdum et malesuada fames ac ante ipsum primis in
faucibus. Pellentesque habitant morbi tristique senectus et netus et
malesuada fames ac turpis egestas. Etiam metus felis, euismod sit
amet vestibulum vitae, dictum id nunc. Curabitur porttitor ante at
faucibus vehicula. Interdum et malesuada fames ac ante ipsum primis
in faucibus. Cras aliquam viverra ipsum, nec rutrum lacus. Proin et
eros id lorem congue commodo. Mauris lacinia tempor ante, sit amet
suscipit lacus condimentum vitae. Vivamus nec eleifend urna. Aliquam
mi risus, viverra vitae felis eget, volutpat vestibulum lectus.
Suspendisse potenti.
</Text>
<Markdown rules={rules} mergeStyle={true} style={styles}>
{isPending ? 'Loading...' : `${data}`}
</Markdown>
</Layout>
</ScrollView>
</Layout>
Expand All @@ -55,6 +72,10 @@ const themedStyles = StyleService.create({
// alignItems: 'center',
// paddingVertical: 25,
},
logoContainer: {
flex: 1,
alignItems: 'center',
},
logo: {
height: 100,
width: 100,
Expand All @@ -67,4 +88,22 @@ const themedStyles = StyleService.create({
aboutLabel: {
marginBottom: 16,
},
blockquote: {
backgroundColor: '#292929',
},
code_inline: {
backgroundColor: '#292929',
},
table: {
borderColor: '#ccc',
},
tr: {
borderColor: '#ccc',
},
bullet_list_icon: {
color: '#ccc',
},
ordered_list_icon: {
color: '#ccc',
},
});
Loading

0 comments on commit 1952211

Please sign in to comment.