mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-09-09 12:09:25 +00:00 
			
		
		
		
	
							parent
							
								
									d2a7e82f44
								
							
						
					
					
						commit
						d55544e2df
					
				| 
						 | 
					@ -12,8 +12,6 @@
 | 
				
			||||||
          <set>
 | 
					          <set>
 | 
				
			||||||
            <option value="$PROJECT_DIR$" />
 | 
					            <option value="$PROJECT_DIR$" />
 | 
				
			||||||
            <option value="$PROJECT_DIR$/app" />
 | 
					            <option value="$PROJECT_DIR$/app" />
 | 
				
			||||||
            <option value="$PROJECT_DIR$/ui" />
 | 
					 | 
				
			||||||
            <option value="$PROJECT_DIR$/ui/home" />
 | 
					 | 
				
			||||||
          </set>
 | 
					          </set>
 | 
				
			||||||
        </option>
 | 
					        </option>
 | 
				
			||||||
      </GradleProjectSettings>
 | 
					      </GradleProjectSettings>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,24 +42,4 @@ dependencies {
 | 
				
			||||||
    implementation "com.google.dagger:hilt-android:2.44"
 | 
					    implementation "com.google.dagger:hilt-android:2.44"
 | 
				
			||||||
    annotationProcessor "com.google.dagger:hilt-compiler:2.44"
 | 
					    annotationProcessor "com.google.dagger:hilt-compiler:2.44"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Navigation Component
 | 
					 | 
				
			||||||
    def nav_version = "2.5.3"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Java language implementation
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-fragment:$nav_version"
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-ui:$nav_version"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Kotlin
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Feature module Support
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Testing Navigation
 | 
					 | 
				
			||||||
    androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // Jetpack Compose Integration
 | 
					 | 
				
			||||||
    implementation "androidx.navigation:navigation-compose:$nav_version"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -2,5 +2,4 @@
 | 
				
			||||||
plugins {
 | 
					plugins {
 | 
				
			||||||
    id 'com.android.application' version '8.0.2' apply false
 | 
					    id 'com.android.application' version '8.0.2' apply false
 | 
				
			||||||
    id 'com.google.dagger.hilt.android' version '2.44' apply false
 | 
					    id 'com.google.dagger.hilt.android' version '2.44' apply false
 | 
				
			||||||
    id 'com.android.library' version '8.0.2' apply false
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -15,4 +15,3 @@ dependencyResolutionManagement {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
rootProject.name = "Lacerta"
 | 
					rootProject.name = "Lacerta"
 | 
				
			||||||
include ':app'
 | 
					include ':app'
 | 
				
			||||||
include ':ui:home'
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										1
									
								
								ui/home/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								ui/home/.gitignore
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -1 +0,0 @@
 | 
				
			||||||
/build
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,35 +0,0 @@
 | 
				
			||||||
plugins {
 | 
					 | 
				
			||||||
    id 'com.android.library'
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
android {
 | 
					 | 
				
			||||||
    namespace 'one.nem.ui.home'
 | 
					 | 
				
			||||||
    compileSdk 33
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    defaultConfig {
 | 
					 | 
				
			||||||
        minSdk 26
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 | 
					 | 
				
			||||||
        consumerProguardFiles "consumer-rules.pro"
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    buildTypes {
 | 
					 | 
				
			||||||
        release {
 | 
					 | 
				
			||||||
            minifyEnabled false
 | 
					 | 
				
			||||||
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    compileOptions {
 | 
					 | 
				
			||||||
        sourceCompatibility JavaVersion.VERSION_1_8
 | 
					 | 
				
			||||||
        targetCompatibility JavaVersion.VERSION_1_8
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
dependencies {
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    implementation 'androidx.appcompat:appcompat:1.6.1'
 | 
					 | 
				
			||||||
    implementation 'com.google.android.material:material:1.10.0'
 | 
					 | 
				
			||||||
    testImplementation 'junit:junit:4.13.2'
 | 
					 | 
				
			||||||
    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
 | 
					 | 
				
			||||||
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
							
								
								
									
										21
									
								
								ui/home/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								ui/home/proguard-rules.pro
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -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
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,26 +0,0 @@
 | 
				
			||||||
package one.nem.ui.home;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import android.content.Context;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import androidx.test.platform.app.InstrumentationRegistry;
 | 
					 | 
				
			||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import org.junit.Test;
 | 
					 | 
				
			||||||
import org.junit.runner.RunWith;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import static org.junit.Assert.*;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Instrumented test, which will execute on an Android device.
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
@RunWith(AndroidJUnit4.class)
 | 
					 | 
				
			||||||
public class ExampleInstrumentedTest {
 | 
					 | 
				
			||||||
    @Test
 | 
					 | 
				
			||||||
    public void useAppContext() {
 | 
					 | 
				
			||||||
        // Context of the app under test.
 | 
					 | 
				
			||||||
        Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
 | 
					 | 
				
			||||||
        assertEquals("one.nem.ui.home.test", appContext.getPackageName());
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,4 +0,0 @@
 | 
				
			||||||
<?xml version="1.0" encoding="utf-8"?>
 | 
					 | 
				
			||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
</manifest>
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,17 +0,0 @@
 | 
				
			||||||
package one.nem.ui.home;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import org.junit.Test;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
import static org.junit.Assert.*;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/**
 | 
					 | 
				
			||||||
 * Example local unit test, which will execute on the development machine (host).
 | 
					 | 
				
			||||||
 *
 | 
					 | 
				
			||||||
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
public class ExampleUnitTest {
 | 
					 | 
				
			||||||
    @Test
 | 
					 | 
				
			||||||
    public void addition_isCorrect() {
 | 
					 | 
				
			||||||
        assertEquals(4, 2 + 2);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user