Lawnchair: Simplify structure, update app name

This commit is contained in:
Kshitij Gupta
2021-02-28 21:17:06 +05:30
parent 1d49390841
commit 8627ab7b3d
11 changed files with 15 additions and 66 deletions

View File

@@ -1 +0,0 @@
/build

View File

@@ -17,6 +17,14 @@ android {
consumerProguardFiles "consumer-rules.pro"
}
sourceSets {
main {
res.srcDirs = ['res']
java.srcDirs = ['src']
manifest.srcFile 'AndroidManifest.xml'
}
}
buildTypes {
release {
minifyEnabled false

View File

@@ -1,21 +0,0 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="derived_app_name" tools:override="true">Lawnchair</string>
</resources>

View File

@@ -1,24 +0,0 @@
package ch.deletescape.lawnchair
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("ch.deletescape.lawnchair.test", appContext.packageName)
}
}

View File

@@ -1,17 +0,0 @@
package ch.deletescape.lawnchair
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}

View File

@@ -19,7 +19,7 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Application name -->
<string name="derived_app_name" translatable="false">Quickstep</string>
<!-- <string name="derived_app_name" translatable="false">Quickstep</string>-->
<!-- Options for recent tasks -->
<!-- Title for an option to enter split screen mode for a given app -->

View File

@@ -7,7 +7,7 @@
<!-- A string pointer to the original app name string. This allows derived projects to
easily override the app name without providing all translations -->
<string name="derived_app_name" translatable="false">@string/app_name</string>
<!-- <string name="derived_app_name" translatable="false">@string/app_name</string>-->
<!-- String representing the intent for search on the apps market. To specify a query, add
q=<query> to the data to the intent -->