Skip to content

Commit

Permalink
Merge pull request #17 from minusno0708/fix/rename-application
Browse files Browse the repository at this point in the history
アプリ名を変更
  • Loading branch information
minusno0708 authored Apr 14, 2024
2 parents d3d5328 + 3bf5166 commit 33f31ca
Show file tree
Hide file tree
Showing 52 changed files with 30 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ plugins {
}

android {
namespace = "com.example.smartmouse"
namespace = "com.example.remoconmouse"
compileSdk = 34

defaultConfig {
applicationId = "com.example.smartmouse"
applicationId = "com.example.remoconmouse"
minSdk = 24
targetSdk = 34
versionCode = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.smartmouse
package com.example.remoconmouse

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.smartmouse", appContext.packageName)
assertEquals("com.example.remoconmouse", appContext.packageName)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.SmartMouse"
android:theme="@style/Theme.RemoConMouse"
tools:targetApi="31">
<activity
android:name=".MouseActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.example.smartmouse
package com.example.remoconmouse

import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.smartmouse.databinding.ActivityMainBinding
import com.example.remoconmouse.databinding.ActivityMainBinding

object ServerData {
val serverManager = ServerManager()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.smartmouse
package com.example.remoconmouse

import android.annotation.SuppressLint
import android.content.Context
Expand All @@ -7,7 +7,7 @@ import android.hardware.SensorManager
import android.os.Bundle
import android.view.MotionEvent
import androidx.appcompat.app.AppCompatActivity
import com.example.smartmouse.databinding.ActivityMouseBinding
import com.example.remoconmouse.databinding.ActivityMouseBinding
import java.util.Timer
import kotlin.concurrent.schedule

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.smartmouse
package com.example.remoconmouse

import android.hardware.Sensor
import android.hardware.SensorEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.smartmouse
package com.example.remoconmouse

import java.io.BufferedReader
import java.io.InputStreamReader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="Smart Mouse"
android:text="RemoConMouse"
android:textSize="40dp"
android:background="@color/title"
android:textColor="@color/white"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.SmartMouse" parent="Theme.Material3.DayNight.NoActionBar">
<style name="Base.Theme.RemoConMouse" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
Expand Down
3 changes: 3 additions & 0 deletions src/client/RemoConMouse/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">RemoConMouse</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.SmartMouse" parent="Theme.Material3.DayNight.NoActionBar">
<style name="Base.Theme.RemoConMouse" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
</style>

<style name="Theme.SmartMouse" parent="Base.Theme.SmartMouse" />
<style name="Theme.RemoConMouse" parent="Base.Theme.RemoConMouse" />
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.smartmouse
package com.example.remoconmouse

import org.junit.Test

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ dependencyResolutionManagement {
}
}

rootProject.name = "SmartMouse"
rootProject.name = "RemoConMouse"
include(":app")

3 changes: 0 additions & 3 deletions src/client/SmartMouse/app/src/main/res/values/strings.xml

This file was deleted.

File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,15 @@ public static void Stop()

foreach (string ip in ipList)
{
SendTcp(ip, "");
SendUdp(ip, "");
try
{
SendTcp(ip, "");
SendUdp(ip, "");
}
catch
{

}
}
}

Expand Down

0 comments on commit 33f31ca

Please sign in to comment.