forked from cerc-io/laconic-wallet
Change package name to com.laconic.wallet (#33)
* Change package name * Refactor folder structure * Remove older instances of file * Change name in app.json * Make address selectable --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
This commit is contained in:
parent
85e5a5e9bc
commit
a643f9f9b1
@ -80,9 +80,9 @@ android {
|
||||
buildToolsVersion rootProject.ext.buildToolsVersion
|
||||
compileSdk rootProject.ext.compileSdkVersion
|
||||
|
||||
namespace "com.laconic_wallet"
|
||||
namespace "com.laconic.wallet"
|
||||
defaultConfig {
|
||||
applicationId "com.laconic_wallet"
|
||||
applicationId "com.laconic.wallet"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.laconic.wallet">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.laconic_wallet
|
||||
package com.laconic.wallet
|
||||
|
||||
import com.facebook.react.ReactActivity
|
||||
import com.facebook.react.ReactActivityDelegate
|
||||
@ -11,7 +11,7 @@ class MainActivity : ReactActivity() {
|
||||
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
||||
* rendering of the component.
|
||||
*/
|
||||
override fun getMainComponentName(): String = "laconic_wallet"
|
||||
override fun getMainComponentName(): String = "wallet"
|
||||
|
||||
/**
|
||||
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
@ -1,4 +1,4 @@
|
||||
package com.laconic_wallet
|
||||
package com.laconic.wallet
|
||||
|
||||
import android.app.Application
|
||||
import com.facebook.react.PackageList
|
@ -1,4 +1,4 @@
|
||||
rootProject.name = 'laconic_wallet'
|
||||
rootProject.name = 'wallet'
|
||||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
||||
include ':app'
|
||||
includeBuild('../node_modules/@react-native/gradle-plugin')
|
||||
|
4
app.json
4
app.json
@ -1,4 +1,4 @@
|
||||
{
|
||||
"name": "laconic_wallet",
|
||||
"displayName": "laconic_wallet"
|
||||
"name": "wallet",
|
||||
"displayName": "Laconic"
|
||||
}
|
||||
|
@ -12,11 +12,11 @@ interface AccountDetailsProps {
|
||||
const AccountDetails: React.FC<AccountDetailsProps> = ({ account }) => {
|
||||
return (
|
||||
<View style={styles.accountContainer}>
|
||||
<Text variant="bodyLarge">
|
||||
<Text variant="bodyLarge" selectable={true}>
|
||||
<Text style={styles.highlight}>Address: </Text>
|
||||
{account?.address}
|
||||
</Text>
|
||||
<Text variant="bodyLarge">
|
||||
<Text variant="bodyLarge" selectable={true}>
|
||||
<Text style={styles.highlight}>Public Key: </Text>
|
||||
{account?.pubKey}
|
||||
</Text>
|
||||
|
@ -1,29 +0,0 @@
|
||||
import { PropsWithChildren } from 'react';
|
||||
import { Text, View, useColorScheme } from 'react-native';
|
||||
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
||||
|
||||
import styles from '../styles/stylesheet';
|
||||
|
||||
type SectionProps = PropsWithChildren<{
|
||||
title: string;
|
||||
}>;
|
||||
|
||||
const Section = ({ title }: SectionProps): React.JSX.Element => {
|
||||
const isDarkMode = useColorScheme() === 'dark';
|
||||
return (
|
||||
<View style={styles.sectionContainer}>
|
||||
<Text
|
||||
style={[
|
||||
styles.sectionTitle,
|
||||
{
|
||||
color: isDarkMode ? Colors.white : Colors.black,
|
||||
},
|
||||
]}>
|
||||
{title}
|
||||
<Text style={styles.sectionDescription} />
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
export { Section };
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "laconic_wallet",
|
||||
"name": "laconic-wallet",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user