Skip to content

Commit

Permalink
Remove GMS OSS licenses library
Browse files Browse the repository at this point in the history
Signed-off-by: PranavPurwar <purwarpranav80@gmail.com>
  • Loading branch information
PranavPurwar committed Sep 25, 2023
1 parent eddaf77 commit f54cadf
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 36 deletions.
1 change: 0 additions & 1 deletion .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,9 @@
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* This file is part of Cosmic IDE.
* 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.
* 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.
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("com.google.android.gms.oss-licenses-plugin")
id("dev.rikka.tools.materialthemebuilder")
}

Expand Down Expand Up @@ -181,7 +173,6 @@ dependencies {
implementation("com.itsaky.androidide:android-tree-sitter:3.3.0")
implementation("com.itsaky.androidide:tree-sitter-java:3.3.0")
implementation("io.github.itsaky:nb-javac-android:17.0.0.3")
implementation("com.google.android.gms:play-services-oss-licenses:17.0.1")

implementation("org.eclipse.jgit:org.eclipse.jgit:5.13.2.202306221912-r")
implementation("com.github.sya-ri:kgit:1.0.5")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* This file is part of Cosmic IDE.
* 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.
* 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.
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

package org.cosmicide.fragment.settings

import android.annotation.SuppressLint
Expand All @@ -31,7 +38,6 @@ import androidx.fragment.app.FragmentTransaction
import androidx.fragment.app.commit
import androidx.lifecycle.lifecycleScope
import androidx.preference.PreferenceManager
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import de.Maxr1998.modernpreferences.PreferenceScreen
import de.Maxr1998.modernpreferences.helpers.expandText
Expand Down Expand Up @@ -141,18 +147,6 @@ class AboutSettings(private val activity: FragmentActivity) : SettingsProvider {
}
}

pref("license") {
title = "License"
onClick {
activity.startActivity(
Intent(activity, OssLicensesMenuActivity::class.java).setAction(
Intent.ACTION_VIEW
)
)
true
}
}

pref("source") {
title = "Source code"
onClick {
Expand Down
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
* 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.
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/
buildscript {
dependencies {
classpath("com.google.android.gms:oss-licenses-plugin:0.10.6")
}
}

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* This file is part of Cosmic IDE.
* 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.
* 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.
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* This file is part of CodeAssist.
*
Expand Down Expand Up @@ -212,6 +219,7 @@ data class KotlinEnvironment(
val prefix = position?.let { getPrefix(it) } ?: ""

val reference = (position?.parent as? KtSimpleNameExpression)?.mainReference
println("reference: $reference")

list = position?.let { element ->
val descriptorInfo = descriptorsFrom(element, file.kotlinFile)
Expand Down
9 changes: 8 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
#

#
# This file is part of Cosmic IDE.
# 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.
# 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.
# You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
#

#
# This file is part of Cosmic IDE.
# 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.
Expand All @@ -14,6 +21,6 @@
#Sun Apr 16 13:43:03 IST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 0 additions & 7 deletions util/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

/*
* This file is part of Cosmic IDE.
* 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.
* 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.
* You should have received a copy of the GNU General Public License along with Cosmic IDE. If not, see <https://www.gnu.org/licenses/>.
*/

plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
Expand Down

0 comments on commit f54cadf

Please sign in to comment.