diff --git a/appexample/build.gradle.kts b/appexample/build.gradle.kts index bf4365c..1cf1da2 100644 --- a/appexample/build.gradle.kts +++ b/appexample/build.gradle.kts @@ -55,6 +55,4 @@ dependencies { linthPlugin { uploadKey = "f1c8846e-0c3a-44ac-b56a-53feb91d6383" - - //proxy = "192.168.102.147:8888" } \ No newline at end of file diff --git a/appexample/src/main/java/com/example/appexample/ui/main/MainFragment.kt b/appexample/src/main/java/com/example/appexample/ui/main/MainFragment.kt index 1672e6a..4a22953 100644 --- a/appexample/src/main/java/com/example/appexample/ui/main/MainFragment.kt +++ b/appexample/src/main/java/com/example/appexample/ui/main/MainFragment.kt @@ -20,7 +20,6 @@ class MainFragment : Fragment() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) viewModel = ViewModelProvider(this, ViewModelProvider.NewInstanceFactory())[MainViewModel::class.java] - // TODO: Use the ViewModel } override fun onCreateView( diff --git a/plugin-build/plugin/src/main/java/ch/ubique/linth/common/GitUtils.kt b/plugin-build/plugin/src/main/java/ch/ubique/linth/common/GitUtils.kt index be4ee36..e8455ad 100644 --- a/plugin-build/plugin/src/main/java/ch/ubique/linth/common/GitUtils.kt +++ b/plugin-build/plugin/src/main/java/ch/ubique/linth/common/GitUtils.kt @@ -18,21 +18,6 @@ object GitUtils { } fun obtainLastCommits(numOfCommits: Int = 10): String { - /* eventuell das if-else nutzen wenn es sonst auf dem GitHub Runner nicht geht - - val process = if (Os.isFamily(Os.FAMILY_WINDOWS)) { - val lastCommits = "git -C ./ log -$numOfCommits --pretty=format:\"• %s\" --no-merges" - ProcessBuilder(*lastCommits.split(" ").toTypedArray()) - .redirectErrorStream(true) - .start() - } else { - val lastCommits = arrayOf("git", "-C", "./", "log", "-$numOfCommits", "--pretty=format:• %s", "--no-merges") - ProcessBuilder(*lastCommits) - .redirectErrorStream(true) - .start() - } - */ - val lastCommits = "git -C ./ log -$numOfCommits --pretty=format:\"• %s\" --no-merges" val process = ProcessBuilder(*lastCommits.split(" ").toTypedArray()) .redirectErrorStream(true) diff --git a/plugin-build/plugin/src/main/java/ch/ubique/linth/common/IconUtils.kt b/plugin-build/plugin/src/main/java/ch/ubique/linth/common/IconUtils.kt index 4fb0a36..e793011 100644 --- a/plugin-build/plugin/src/main/java/ch/ubique/linth/common/IconUtils.kt +++ b/plugin-build/plugin/src/main/java/ch/ubique/linth/common/IconUtils.kt @@ -161,7 +161,6 @@ object IconUtils { */ fun findLargestIcon(iconFiles: List): File? { val filteredIconFiles = iconFiles.filter { !it.name.contains("_foreground") } - return filteredIconFiles.maxByOrNull { it.length() } } } diff --git a/plugin-build/plugin/src/main/java/ch/ubique/linth/network/BackendRepository.kt b/plugin-build/plugin/src/main/java/ch/ubique/linth/network/BackendRepository.kt index 5b19b96..d23bdd2 100644 --- a/plugin-build/plugin/src/main/java/ch/ubique/linth/network/BackendRepository.kt +++ b/plugin-build/plugin/src/main/java/ch/ubique/linth/network/BackendRepository.kt @@ -61,7 +61,7 @@ class BackendRepository { private fun File.toPartMap(partName: String, mimeType: String): Map { val payload = asRequestBody(contentType = mimeType.toMediaType()) - return mapOf("$partName\"; filename=\"${name}" to payload) + return mapOf("$partName\"; filename=\"$name" to payload) } } \ No newline at end of file diff --git a/plugin-build/plugin/src/main/java/ch/ubique/linth/network/OkHttpInstance.kt b/plugin-build/plugin/src/main/java/ch/ubique/linth/network/OkHttpInstance.kt index 44936e5..d690bee 100644 --- a/plugin-build/plugin/src/main/java/ch/ubique/linth/network/OkHttpInstance.kt +++ b/plugin-build/plugin/src/main/java/ch/ubique/linth/network/OkHttpInstance.kt @@ -51,18 +51,6 @@ object OkHttpInstance { } } proxy(proxy) - - val userAgent = "LinthPlugin TODO Version" - /* - userAgentAndLanguageInterceptor = UserAgentAndAcceptLanguageInterceptor(userAgent, languageTag).also { - addInterceptor(it) - } - */ - - /* - val appToken = AppPreferences.getInstance(context).appToken - addInterceptor(UserAppTokenInterceptor(appToken)) - */ }.build() @Throws(CertificateException::class, KeyStoreException::class, NoSuchAlgorithmException::class, IllegalStateException::class)