Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit a6b8487

Browse files
committed
Change package name to org.cosmicide
Signed-off-by: PranavPurwar <[email protected]>
1 parent df79540 commit a6b8487

File tree

87 files changed

+258
-220
lines changed

Some content is hidden

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

87 files changed

+258
-220
lines changed

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ plugins {
1515
}
1616

1717
android {
18-
namespace = "org.cosmicide.rewrite"
18+
namespace = "org.cosmicide"
1919
compileSdk = 34
2020

2121
defaultConfig {
2222
val commit = getGitCommit()
23-
applicationId = "org.cosmicide.rewrite"
23+
applicationId = "org.cosmicide"
2424
minSdk = 26
2525
targetSdk = 34
26-
versionCode = 1
27-
versionName = "1.0-$commit"
26+
versionCode = 20
27+
versionName = "2.0"
2828
buildConfigField("String", "GIT_COMMIT", "\"$commit\"")
2929
}
3030

app/google-services.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,25 @@
55
"storage_bucket": "rewrite-41cf5.appspot.com"
66
},
77
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:542725065106:android:39543c54d9a91b43d6594b",
11+
"android_client_info": {
12+
"package_name": "org.cosmicide"
13+
}
14+
},
15+
"oauth_client": [],
16+
"api_key": [
17+
{
18+
"current_key": "AIzaSyBCiJcjNDBlSXJoECELMBQ7WtZwOYPYvP4"
19+
}
20+
],
21+
"services": {
22+
"appinvite_service": {
23+
"other_platform_oauth_client": []
24+
}
25+
}
26+
},
827
{
928
"client_info": {
1029
"mobilesdk_app_id": "1:542725065106:android:174f153f22bc54d0d6594b",

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
tools:ignore="ProtectedPermissions" />
3232

3333
<application
34-
android:name=".App"
34+
android:name="org.cosmicide.App"
3535
android:allowBackup="true"
3636
android:allowClearUserData="false"
3737
android:appCategory="productivity"
@@ -60,7 +60,7 @@
6060
android:exported="false"
6161
tools:node="merge">
6262
<meta-data
63-
android:name="org.cosmicide.rewrite.startup.MainInitializer"
63+
android:name="org.cosmicide.startup.MainInitializer"
6464
android:value="androidx.startup" />
6565
</provider>
6666

app/src/main/kotlin/org/cosmicide/rewrite/App.kt renamed to app/src/main/kotlin/org/cosmicide/App.kt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
/*
2+
* This file is part of Cosmic IDE.
3+
* Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4+
* Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5+
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
6+
*/
7+
18
/*
29
* This file is part of Cosmic IDE.
310
* Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
411
* Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
512
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
613
*/
714

8-
package org.cosmicide.rewrite
15+
package org.cosmicide
916

1017
import android.app.Application
1118
import android.app.UiModeManager
@@ -23,14 +30,14 @@ import io.github.rosemoe.sora.langs.textmate.registry.GrammarRegistry
2330
import io.github.rosemoe.sora.langs.textmate.registry.ThemeRegistry
2431
import io.github.rosemoe.sora.langs.textmate.registry.model.ThemeModel
2532
import io.github.rosemoe.sora.langs.textmate.registry.provider.AssetsFileResolver
33+
import org.cosmicide.fragment.PluginsFragment
2634
import org.cosmicide.rewrite.common.Analytics
2735
import org.cosmicide.rewrite.common.Prefs
28-
import org.cosmicide.rewrite.fragment.PluginsFragment
2936
import org.cosmicide.rewrite.plugin.api.Hook
3037
import org.cosmicide.rewrite.plugin.api.HookManager
3138
import org.cosmicide.rewrite.plugin.api.PluginLoader
32-
import org.cosmicide.rewrite.util.CommonUtils
3339
import org.cosmicide.rewrite.util.FileUtil
40+
import org.cosmicide.util.CommonUtils
3441
import org.eclipse.tm4e.core.registry.IThemeSource
3542
import org.lsposed.hiddenapibypass.HiddenApiBypass
3643
import rikka.sui.Sui

app/src/main/kotlin/org/cosmicide/rewrite/FileProvider.kt renamed to app/src/main/kotlin/org/cosmicide/FileProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
66
*/
77

8-
package org.cosmicide.rewrite
8+
package org.cosmicide
99

1010
import android.content.Context
1111
import android.content.Intent

app/src/main/kotlin/org/cosmicide/rewrite/MainActivity.kt renamed to app/src/main/kotlin/org/cosmicide/MainActivity.kt

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1+
/*
2+
* This file is part of Cosmic IDE.
3+
* Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4+
* Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5+
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
6+
*/
7+
18
/*
29
* This file is part of Cosmic IDE.
310
* Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
411
* Cosmic IDE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
512
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
613
*/
714

8-
package org.cosmicide.rewrite
15+
package org.cosmicide
916

1017
import android.content.Context
1118
import android.content.pm.PackageManager
@@ -26,11 +33,11 @@ import com.kieronquinn.app.darq.utils.extensions.awaitBinderReceived
2633
import com.kieronquinn.app.darq.utils.extensions.isShizukuInstalled
2734
import kotlinx.coroutines.launch
2835
import org.cosmicide.rewrite.common.Prefs
29-
import org.cosmicide.rewrite.databinding.ActivityMainBinding
30-
import org.cosmicide.rewrite.fragment.InstallResourcesFragment
31-
import org.cosmicide.rewrite.fragment.ProjectFragment
32-
import org.cosmicide.rewrite.util.CommonUtils
33-
import org.cosmicide.rewrite.util.ResourceUtil
36+
import org.cosmicide.databinding.ActivityMainBinding
37+
import org.cosmicide.fragment.InstallResourcesFragment
38+
import org.cosmicide.fragment.ProjectFragment
39+
import org.cosmicide.util.CommonUtils
40+
import org.cosmicide.util.ResourceUtil
3441
import rikka.shizuku.Shizuku
3542
import rikka.shizuku.Shizuku.OnRequestPermissionResultListener
3643
import rikka.shizuku.ShizukuProvider
@@ -48,8 +55,8 @@ class MainActivity : AppCompatActivity() {
4855
attrs: AttributeSet
4956
): View? {
5057
val accent = Prefs.appAccent
51-
themeInt = CommonUtils.getAccent(accent)
52-
setTheme(themeInt)
58+
themeInt = CommonUtils.getAccent(accent)
59+
setTheme(themeInt)
5360
DynamicColors.applyToActivityIfAvailable(this)
5461
enableEdgeToEdge()
5562
return super.onCreateView(parent, name, context, attrs)

app/src/main/kotlin/org/cosmicide/rewrite/adapter/AvailablePluginAdapter.kt renamed to app/src/main/kotlin/org/cosmicide/adapter/AvailablePluginAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
66
*/
77

8-
package org.cosmicide.rewrite.adapter
8+
package org.cosmicide.adapter
99
/*
1010
* This file is part of Cosmic IDE.
1111
* Cosmic IDE is a free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
@@ -18,7 +18,7 @@ import android.view.LayoutInflater
1818
import android.view.ViewGroup
1919
import androidx.recyclerview.widget.DiffUtil
2020
import androidx.recyclerview.widget.RecyclerView
21-
import org.cosmicide.rewrite.databinding.NewPluginItemBinding
21+
import org.cosmicide.databinding.NewPluginItemBinding
2222
import org.cosmicide.rewrite.plugin.api.Plugin
2323
import kotlin.properties.Delegates
2424

app/src/main/kotlin/org/cosmicide/rewrite/adapter/BindableViewHolder.kt renamed to app/src/main/kotlin/org/cosmicide/adapter/BindableViewHolder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
66
*/
77

8-
package org.cosmicide.rewrite.adapter
8+
package org.cosmicide.adapter
99

1010
import androidx.recyclerview.widget.RecyclerView
1111
import androidx.viewbinding.ViewBinding

app/src/main/kotlin/org/cosmicide/rewrite/adapter/ConversationAdapter.kt renamed to app/src/main/kotlin/org/cosmicide/adapter/ConversationAdapter.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
66
*/
77

8-
package org.cosmicide.rewrite.adapter
8+
package org.cosmicide.adapter
99

1010
import android.view.LayoutInflater
1111
import android.view.ViewGroup
1212
import androidx.recyclerview.widget.RecyclerView
1313
import com.pkslow.ai.domain.Answer
14-
import org.cosmicide.rewrite.databinding.ConversationItemReceivedBinding
15-
import org.cosmicide.rewrite.databinding.ConversationItemSentBinding
16-
import org.cosmicide.rewrite.util.CommonUtils
14+
import org.cosmicide.databinding.ConversationItemReceivedBinding
15+
import org.cosmicide.databinding.ConversationItemSentBinding
16+
import org.cosmicide.util.CommonUtils
1717

1818
class ConversationAdapter :
1919
RecyclerView.Adapter<BindableViewHolder<ConversationAdapter.Conversation, *>>() {

app/src/main/kotlin/org/cosmicide/rewrite/adapter/EditorAdapter.kt renamed to app/src/main/kotlin/org/cosmicide/adapter/EditorAdapter.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
66
*/
77

8-
package org.cosmicide.rewrite.adapter
8+
package org.cosmicide.adapter
99

1010
import android.content.res.Configuration
1111
import android.os.Bundle
@@ -27,14 +27,14 @@ import io.github.rosemoe.sora.widget.subscribeEvent
2727
import kotlinx.coroutines.Dispatchers
2828
import kotlinx.coroutines.launch
2929
import org.cosmicide.build.Javap
30+
import org.cosmicide.databinding.EditorFragmentBinding
31+
import org.cosmicide.editor.IdeEditor
3032
import org.cosmicide.editor.analyzers.EditorDiagnosticsMarker
31-
import org.cosmicide.rewrite.databinding.EditorFragmentBinding
32-
import org.cosmicide.rewrite.editor.IdeEditor
33-
import org.cosmicide.rewrite.editor.language.KotlinLanguage
34-
import org.cosmicide.rewrite.editor.language.TsLanguageJava
35-
import org.cosmicide.rewrite.extension.setFont
36-
import org.cosmicide.rewrite.model.FileViewModel
37-
import org.cosmicide.rewrite.util.ProjectHandler
33+
import org.cosmicide.editor.language.KotlinLanguage
34+
import org.cosmicide.editor.language.TsLanguageJava
35+
import org.cosmicide.extension.setFont
36+
import org.cosmicide.model.FileViewModel
37+
import org.cosmicide.util.ProjectHandler
3838
import java.io.File
3939
import kotlin.properties.Delegates
4040

0 commit comments

Comments
 (0)