Skip to content

Commit 882e313

Browse files
[ref] add package and refactoring
1 parent cc36cba commit 882e313

File tree

38 files changed

+23
-370
lines changed

38 files changed

+23
-370
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies {
3636
implementation 'junit:junit:4.12'
3737

3838
implementation "com.android.support:appcompat-v7:28.0.0"
39-
//testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
39+
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
4040
androidTestImplementation 'com.android.support.test:runner:1.0.2'
4141
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
4242

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.leetcode_kotlin
22

3-
43
fun main() {}

app/src/main/java/com/leetcode_kotlin/LongestCommonPrefix/DoSomething.java renamed to app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/LongestCommonPrefix/DoSomething.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.leetcode_kotlin.LongestCommonPrefix;
1+
package com.leetcode_kotlin.Task.twoSum.TwoSum.LongestCommonPrefix;
22

33

44
public class DoSomething {

app/src/main/java/com/leetcode_kotlin/LongestCommonPrefix/LongestCommonPrefix.kt renamed to app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/LongestCommonPrefix/LongestCommonPrefix.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.leetcode_kotlin.LongestCommonPrefix
1+
package com.leetcode_kotlin.Task.twoSum.TwoSum.LongestCommonPrefix
22

33

44
fun longestCommonPrefix(strs: Array<String>): String {

app/src/main/java/com/leetcode_kotlin/PalindromeNumber/DoingSomething.java renamed to app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/PalindromeNumber/DoingSomething.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.leetcode_kotlin.PalindromeNumber;
1+
package com.leetcode_kotlin.Task.twoSum.TwoSum.PalindromeNumber;
22

33
public class DoingSomething {
44

app/src/main/java/com/leetcode_kotlin/PalindromeNumber/Palindrome.kt renamed to app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/PalindromeNumber/Palindrome.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.leetcode_kotlin.PalindromeNumber
1+
package com.leetcode_kotlin.Task.twoSum.TwoSum.PalindromeNumber
22

33

44
fun palindromeNumber(x: Int): Boolean {

app/src/main/java/com/leetcode_kotlin/TwoSum/TwoSum.kt renamed to app/src/main/java/com/leetcode_kotlin/Task/twoSum/TwoSum/TwoSum/TwoSum.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.leetcode_kotlin.TwoSum
1+
package com.leetcode_kotlin.Task.twoSum.TwoSum.TwoSum
22

33

44

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package com.leetcode_kotlin.Task
2+

app/src/test/java/com/leetcode_kotlin/PalindromeTest/PalindromeTest.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.leetcode_kotlin.PalindromeTest
22

3-
import com.leetcode_kotlin.PalindromeNumber.palindromeNumber
4-
import junit.framework.Assert.assertEquals
3+
import com.leetcode_kotlin.Task.twoSum.TwoSum.PalindromeNumber.palindromeNumber
4+
import junit.framework.TestCase.assertEquals
55
import org.junit.Test
66

77
class PalindromeTest {
@@ -24,7 +24,7 @@ class PalindromeTest {
2424
val expected = false
2525
val actual = palindromeNumber(-121)
2626

27-
assertEquals(expected,actual)
27+
assertEquals(expected, actual)
2828

2929

3030
}
@@ -35,6 +35,8 @@ class PalindromeTest {
3535
val expected = false
3636
val actual = palindromeNumber(10)
3737

38+
assertEquals(expected, actual)
39+
3840

3941
}
4042

app/src/test/java/com/leetcode_kotlin/TwoSumTest/TwoSumTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.leetcode_kotlin.TwoSumTest
22

3-
import com.leetcode_kotlin.TwoSum.twoSumMain
3+
import com.leetcode_kotlin.Task.twoSum.TwoSum.TwoSum.twoSumMain
44
import junit.framework.Assert.assertEquals
55
import org.junit.Test
66

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id 'com.android.application' version '7.3.1' apply false
4-
id 'com.android.library' version '7.3.1' apply false
3+
id 'com.android.application' version '7.4.0' apply false
4+
id 'com.android.library' version '7.4.0' apply false
55
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
66
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9-
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
9+
org.gradle.jvmargs=-Xmx2048m
1010
# When configured, Gradle will run in incubating parallel mode.
1111
# This option should only be used with decoupled projects. More details, visit
1212
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Mon Nov 21 12:39:01 YEKT 2022
1+
#Sat Jan 28 22:59:01 YEKT 2023
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

r_v27days/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

r_v27days/build.gradle

Lines changed: 0 additions & 39 deletions
This file was deleted.

r_v27days/consumer-rules.pro

Whitespace-only changes.

r_v27days/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

r_v27days/src/androidTest/java/com/r_v27days/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

r_v27days/src/main/AndroidManifest.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

r_v27days/src/test/java/com/r_v27days/ExampleUnitTest.kt

Lines changed: 0 additions & 17 deletions
This file was deleted.

r_v3days/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

r_v3days/build.gradle

Lines changed: 0 additions & 39 deletions
This file was deleted.

r_v3days/consumer-rules.pro

Whitespace-only changes.

r_v3days/proguard-rules.pro

Lines changed: 0 additions & 21 deletions
This file was deleted.

r_v3days/src/androidTest/java/com/r_v3days/task/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

r_v3days/src/main/AndroidManifest.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

r_v3days/src/main/java/com/r_v3days/task/TwoSum/Solution_1.kt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)