fix: remove dependency on Google Play Services

This commit is contained in:
Akash Yadav
2024-01-03 17:32:58 +05:30
parent 798e324fd9
commit e77f731fff
8 changed files with 2 additions and 27 deletions
-2
View File
@@ -7,7 +7,6 @@ plugins {
id("kotlin-android")
id("kotlin-kapt")
id("kotlin-parcelize")
id("com.google.android.gms.oss-licenses-plugin")
id("androidx.navigation.safeargs.kotlin")
}
@@ -103,7 +102,6 @@ dependencies {
implementation(libs.androidx.work.ktx)
implementation(libs.google.material)
implementation(libs.google.flexbox)
implementation(libs.google.oss.licenses)
// Kotlin
implementation(libs.androidx.core.ktx)
-7
View File
@@ -11,7 +11,6 @@
android:protectionLevel="normal"
tools:ignore="ManifestOrder" />
<uses-permission android:name="com.itsaky.androidide.permission.BIND_LOG_SERVICE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -80,12 +79,6 @@
android:name=".activities.TerminalActivity"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
android:theme="@style/Theme.AndroidIDE" />
<activity
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
android:theme="@style/Theme.AndroidIDE" />
<provider
android:authorities="com.itsaky.androidide.documents"
android:exported="true"
@@ -31,7 +31,6 @@ import androidx.core.content.ContextCompat
import androidx.core.view.updatePaddingRelative
import com.blankj.utilcode.util.ClipboardUtils
import com.blankj.utilcode.util.SizeUtils
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
import com.itsaky.androidide.BuildConfig
import com.itsaky.androidide.R
import com.itsaky.androidide.adapters.SimpleIconTitleDescriptionAdapter
@@ -67,12 +66,10 @@ class AboutActivity : LimitlessIDEActivity() {
private val ACTION_TG_GROUP = id++
private val ACTION_CONTRIBUTE = id++
private val ACTION_CONTRIBUTORS = id++
private val ACTION_OSS_LICENSES = id++
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
OssLicensesMenuActivity.setActivityTitle(getString(R.string.oss_license_title))
binding.apply {
@@ -122,7 +119,6 @@ class AboutActivity : LimitlessIDEActivity() {
ACTION_EMAIL -> app.emailUs()
ACTION_TG_GROUP -> app.openTelegramGroup()
ACTION_TG_CHANNEL -> app.openTelegramChannel()
ACTION_OSS_LICENSES -> startActivity(Intent(this, OssLicensesMenuActivity::class.java))
ACTION_CONTRIBUTE -> app.openUrl(BaseApplication.CONTRIBUTOR_GUIDE_URL)
ACTION_CONTRIBUTORS -> startActivity(Intent(this, ContributorsActivity::class.java))
}
@@ -177,13 +173,6 @@ class AboutActivity : LimitlessIDEActivity() {
R.string.title_contributors,
R.string.summary_contributors
))
add(SimpleIconTitleDescriptionItem.create(
this@AboutActivity,
ACTION_OSS_LICENSES,
R.drawable.ic_licenses,
R.string.title_open_source_licenses,
R.string.summary_open_source_licenses
))
}
}
@@ -372,7 +372,7 @@ abstract class BaseEditorActivity :
open fun showFirstBuildNotice() {
newMaterialDialogBuilder(this)
.setPositiveButton(string.ok, null)
.setPositiveButton(android.R.string.ok, null)
.setTitle(string.title_first_build)
.setMessage(string.msg_first_build)
.setCancelable(false)
@@ -595,7 +595,7 @@ abstract class BaseEditorActivity :
val builder = newMaterialDialogBuilder(this)
builder.setTitle(string.need_help)
builder.setMessage(string.msg_need_help)
builder.setPositiveButton(string.ok, null)
builder.setPositiveButton(android.R.string.ok, null)
builder.create().show()
}
-1
View File
@@ -34,7 +34,6 @@ plugins {
buildscript {
dependencies {
classpath(libs.oss.licenses.plugin)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.nav.safe.args.gradle.plugin)
}
View File
-3
View File
@@ -79,7 +79,6 @@ androidx-splashscreen = { module = "androidx.core:core-splashscreen", version =
androidx-transition = { module = "androidx.transition:transition-ktx", version = "1.4.1" }
androidx-nav-fragment = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "androidx-navigation" }
androidx-nav-ui = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "androidx-navigation" }
androidx-nav-dynamic_features = { module = "androidx.navigation:navigation-dynamic-features-fragment", version.ref = "androidx-navigation" }
androidx-tracing = { module = "androidx.tracing:tracing", version = "1.2.0" }
androidx-tracing-ktx = { module = "androidx.tracing:tracing-ktx", version = "1.2.0" }
androidx-viewpager = { module = "androidx.viewpager:viewpager", version = "1.0.0" }
@@ -97,7 +96,6 @@ google-auto-value-annotations = { module = "com.google.auto.value:auto-value-ann
google-auto-value-ap = { module = "com.google.auto.value:auto-value", version = "1.10.4" }
google-auto-service-annotations = { module = "com.google.auto.service:auto-service-annotations", version = "1.1.1" }
google-auto-service = { module = "com.google.auto.service:auto-service", version = "1.1.1" }
google-oss-licenses = { module = "com.google.android.gms:play-services-oss-licenses", version = "17.0.1" }
google-protobuf = { module = "com.google.protobuf:protobuf-java", version = "3.25.1" }
google-java-format = { module = "com.google.googlejavaformat:google-java-format", version = "1.18.1" }
google-flexbox = { module = "com.google.android.flexbox:flexbox", version = "3.0.0" }
@@ -142,7 +140,6 @@ tooling-slf4j = { module = "org.slf4j:slf4j-api", version = "2.0.9" }
# Classpaths
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
oss-licenses-plugin = { module = "com.google.android.gms:oss-licenses-plugin", version = "0.10.6" }
nav-safe-args-gradle-plugin = { module = "androidx.navigation:navigation-safe-args-gradle-plugin", version.ref = "androidx-navigation" }
maven-publish = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "maven-publish-plugin" }
-1
View File
@@ -15,7 +15,6 @@ dependencies {
implementation(libs.androidx.fragment.ktx)
implementation(libs.androidx.nav.fragment)
implementation(libs.androidx.nav.ui)
implementation(libs.androidx.nav.dynamic.features)
implementation(libs.common.editor)
implementation(libs.common.kotlin)
implementation(libs.common.utilcode)