mirror of
https://github.com/dzeiocom/OpenHealth.git
synced 2025-04-23 03:12:14 +00:00
feat(app): Add OSS licenses notice #69
This commit is contained in:
parent
47a91fcc09
commit
218d23f223
@ -8,6 +8,9 @@ plugins {
|
|||||||
// Safe Navigation
|
// Safe Navigation
|
||||||
id("androidx.navigation.safeargs")
|
id("androidx.navigation.safeargs")
|
||||||
|
|
||||||
|
// OSS Licenses
|
||||||
|
id("com.google.android.gms.oss-licenses-plugin")
|
||||||
|
|
||||||
// keep at bottom
|
// keep at bottom
|
||||||
kotlin("kapt")
|
kotlin("kapt")
|
||||||
}
|
}
|
||||||
@ -29,7 +32,7 @@ android {
|
|||||||
keyAlias = keystoreProperties["keyAlias"] as String
|
keyAlias = keystoreProperties["keyAlias"] as String
|
||||||
storeFile = file(keystoreProperties["storeFile"] as String)
|
storeFile = file(keystoreProperties["storeFile"] as String)
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {}
|
} catch (_: Exception) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -113,9 +116,9 @@ dependencies {
|
|||||||
|
|
||||||
// Core dependencies
|
// Core dependencies
|
||||||
implementation("androidx.core:core-ktx:1.8.0")
|
implementation("androidx.core:core-ktx:1.8.0")
|
||||||
implementation("androidx.appcompat:appcompat:1.6.0-alpha05")
|
implementation("androidx.appcompat:appcompat:1.6.0-beta01")
|
||||||
implementation("javax.inject:javax.inject:1")
|
implementation("javax.inject:javax.inject:1")
|
||||||
implementation("com.google.android.material:material:1.7.0-alpha03")
|
implementation("com.google.android.material:material:1.7.0-beta01")
|
||||||
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
||||||
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1")
|
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1")
|
||||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
|
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
|
||||||
@ -176,4 +179,7 @@ dependencies {
|
|||||||
implementation("com.google.guava:guava:31.1-jre")
|
implementation("com.google.guava:guava:31.1-jre")
|
||||||
implementation("androidx.concurrent:concurrent-futures:1.1.0")
|
implementation("androidx.concurrent:concurrent-futures:1.1.0")
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.6.4")
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.6.4")
|
||||||
|
|
||||||
|
// OSS Licenses
|
||||||
|
implementation("com.google.android.gms:play-services-oss-licenses:17.0.0")
|
||||||
}
|
}
|
||||||
|
@ -47,6 +47,19 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
|
<activity android:name=".ui.ErrorActivity"
|
||||||
|
android:theme="@style/Theme.OpenHealth.NoActionBar"
|
||||||
|
android:exported="false" />
|
||||||
|
|
||||||
|
<!-- OSS Licenses-->
|
||||||
|
<activity
|
||||||
|
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
|
||||||
|
android:theme="@style/Theme.OpenHealth" />
|
||||||
|
<activity
|
||||||
|
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
|
||||||
|
android:theme="@style/Theme.OpenHealth" />
|
||||||
|
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".services.OpenHealthService"
|
android:name=".services.OpenHealthService"
|
||||||
android:permission="android.permission.ACTIVITY_RECOGNITION" />
|
android:permission="android.permission.ACTIVITY_RECOGNITION" />
|
||||||
@ -60,9 +73,6 @@
|
|||||||
android:value="true" />
|
android:value="true" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<activity android:name=".ui.ErrorActivity"
|
|
||||||
android:theme="@style/Theme.OpenHealth.NoActionBar"
|
|
||||||
android:exported="false" />
|
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
</manifest>
|
</manifest>
|
||||||
|
@ -13,6 +13,7 @@ import com.dzeio.openhealth.BuildConfig
|
|||||||
import com.dzeio.openhealth.R
|
import com.dzeio.openhealth.R
|
||||||
import com.dzeio.openhealth.core.BaseStaticFragment
|
import com.dzeio.openhealth.core.BaseStaticFragment
|
||||||
import com.dzeio.openhealth.databinding.FragmentAboutBinding
|
import com.dzeio.openhealth.databinding.FragmentAboutBinding
|
||||||
|
import com.google.android.gms.oss.licenses.OssLicensesMenuActivity
|
||||||
|
|
||||||
class AboutFragment : BaseStaticFragment<FragmentAboutBinding>() {
|
class AboutFragment : BaseStaticFragment<FragmentAboutBinding>() {
|
||||||
override val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> FragmentAboutBinding
|
override val bindingInflater: (LayoutInflater, ViewGroup?, Boolean) -> FragmentAboutBinding
|
||||||
@ -32,6 +33,10 @@ class AboutFragment : BaseStaticFragment<FragmentAboutBinding>() {
|
|||||||
binding.github.setOnClickListener {
|
binding.github.setOnClickListener {
|
||||||
openLink("https://github.com/dzeiocom/OpenHealth")
|
openLink("https://github.com/dzeiocom/OpenHealth")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
binding.licenses.setOnClickListener {
|
||||||
|
startActivity(Intent(requireContext(), OssLicensesMenuActivity::class.java))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun openLink(url: String) {
|
private fun openLink(url: String) {
|
||||||
|
@ -5,6 +5,9 @@ buildscript {
|
|||||||
|
|
||||||
// Safe Navigation
|
// Safe Navigation
|
||||||
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.1")
|
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.1")
|
||||||
|
|
||||||
|
// OSS licenses
|
||||||
|
classpath("com.google.android.gms:oss-licenses-plugin:0.10.5")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user