Skip to content

Commit a3c840c

Browse files
committed
feat: Rename package and add build settings
1 parent 5d6e134 commit a3c840c

File tree

9 files changed

+2035
-152
lines changed

9 files changed

+2035
-152
lines changed

android/app/build.gradle

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apply plugin: "com.android.application"
22
apply plugin: "org.jetbrains.kotlin.android"
33
apply plugin: "com.facebook.react"
4+
apply from: project(":react-native-config").projectDir.getPath() + "/dotenv.gradle"
45

56
def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
67

@@ -65,7 +66,7 @@ react {
6566
/**
6667
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
6768
*/
68-
def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
69+
def enableProguardInReleaseBuilds = true
6970

7071
/**
7172
* The preferred build flavor of JavaScriptCore (JSC)
@@ -86,14 +87,18 @@ android {
8687
buildToolsVersion rootProject.ext.buildToolsVersion
8788
compileSdk rootProject.ext.compileSdkVersion
8889

89-
namespace 'com.anonymous.kaizoku'
90+
namespace 'com.gitfudge.kaizoku'
91+
9092
defaultConfig {
91-
applicationId 'com.anonymous.kaizoku'
93+
applicationId 'com.gitfudge.kaizoku'
9294
minSdkVersion rootProject.ext.minSdkVersion
9395
targetSdkVersion rootProject.ext.targetSdkVersion
9496
versionCode 1
9597
versionName "1.0.0"
9698
}
99+
buildFeatures {
100+
buildConfig true
101+
}
97102
signingConfigs {
98103
debug {
99104
storeFile file('debug.keystore')
@@ -102,6 +107,7 @@ android {
102107
keyPassword 'android'
103108
}
104109
}
110+
105111
buildTypes {
106112
debug {
107113
signingConfig signingConfigs.debug

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<uses-permission android:name="android.permission.VIBRATE"/>
66
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
77
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />
8-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
98
<!-- For Android 10 (API level 29) and above -->
109
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
1110
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
@@ -37,7 +36,7 @@
3736
<category android:name="android.intent.category.DEFAULT"/>
3837
<category android:name="android.intent.category.BROWSABLE"/>
3938
<data android:scheme="myapp"/>
40-
<data android:scheme="com.anonymous.kaizoku"/>
39+
<data android:scheme="com.gitfudge.kaizoku"/>
4140
</intent-filter>
4241
</activity>
4342
</application>

android/app/src/main/java/com/anonymous/kaizoku/MainActivity.kt renamed to android/app/src/main/java/com/gitfudge/kaizoku/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.anonymous.kaizoku
1+
package com.gitfudge.kaizoku
22
import expo.modules.splashscreen.SplashScreenManager
33

44
import android.os.Build

android/app/src/main/java/com/anonymous/kaizoku/MainApplication.kt renamed to android/app/src/main/java/com/gitfudge/kaizoku/MainApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.anonymous.kaizoku
1+
package com.gitfudge.kaizoku
22

33
import com.rnfs.RNFSPackage;
44
import com.asterinet.react.bgactions.BackgroundActionsPackage;

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ allprojects {
3939
maven { url 'https://www.jitpack.io' }
4040
}
4141
}
42+

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"POST_NOTIFICATIONS",
2727
"android.permission.POST_NOTIFICATIONS"
2828
],
29-
"package": "com.anonymous.kaizoku"
29+
"package": "com.gitfudge.kaizoku"
3030
},
3131
"web": {
3232
"bundler": "metro",

app/(tabs)/settings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export default function SettingsScreen() {
6464
<View style={styles.container}>
6565
<View style={styles.section}>
6666
<View style={styles.tokenContainer}>
67-
{!isEditing && <Text style={styles.textLabel}>Access Token</Text>}
6867
<TextInput
6968
label="Access Token"
7069
value={

0 commit comments

Comments
 (0)