Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Takeya-Yuki
RubyLib
提交
eef9c064
R
RubyLib
项目概览
Takeya-Yuki
/
RubyLib
8 个月 前同步成功
通知
39
Star
19
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
RubyLib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
eef9c064
编写于
9月 15, 2017
作者:
T
Takeya Yuki
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix Push Service
上级
bbc80c4c
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
11 deletion
+15
-11
README.md
README.md
+2
-2
app/src/main/AndroidManifest.xml
app/src/main/AndroidManifest.xml
+1
-1
app/src/main/java/jp/ruby/rubylibrary/MainActivity.java
app/src/main/java/jp/ruby/rubylibrary/MainActivity.java
+0
-1
app/src/main/java/jp/ruby/rubylibrary/TestService.java
app/src/main/java/jp/ruby/rubylibrary/TestService.java
+5
-1
rubylib/build.gradle
rubylib/build.gradle
+2
-2
rubylib/src/main/java/yuki/msg/extended/YukiPushService.java
rubylib/src/main/java/yuki/msg/extended/YukiPushService.java
+5
-4
未找到文件。
README.md
浏览文件 @
eef9c064
...
...
@@ -12,5 +12,5 @@ Volume Control Features<br/>
Yuki Push Service
<br/>
## Current Version
1.
0.
9-git-201709041527
<br/>
[
![Download
](
https://api.bintray.com/packages/takeya-yuki-studio/maven/rubylib/images/download.svg?version=1.0.
9
)
](https://bintray.com/takeya-yuki-studio/maven/rubylib/1.0.9
/link)
1.
0.
10-git-201709101131
<br/>
[
![Download
](
https://api.bintray.com/packages/takeya-yuki-studio/maven/rubylib/images/download.svg?version=1.0.
10
)
](https://bintray.com/takeya-yuki-studio/maven/rubylib/1.0.10
/link)
app/src/main/AndroidManifest.xml
浏览文件 @
eef9c064
...
...
@@ -43,7 +43,7 @@
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER
123456
"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
...
...
app/src/main/java/jp/ruby/rubylibrary/MainActivity.java
浏览文件 @
eef9c064
...
...
@@ -64,7 +64,6 @@ public class MainActivity extends Activity {
data
+=
Pi
.
name
+
":"
+
Pi
.
loadDescription
(
packageManager
)+
"<br/>"
;
}
wv
.
loadData
(
data
,
"text/html"
,
"utf-8"
);
ActivityCompat
.
requestPermissions
(
this
,
null
,
0
);
}
}
...
...
app/src/main/java/jp/ruby/rubylibrary/TestService.java
浏览文件 @
eef9c064
...
...
@@ -18,7 +18,7 @@ import yuki.msg.extended.YukiPushService;
public
class
TestService
extends
YukiPushService
{
@Override
public
String
GetRemoteEndPoint
()
{
return
"10.1.1.134:
10086
"
;
return
"10.1.1.134:
8134
"
;
}
@Override
...
...
@@ -40,5 +40,9 @@ public class TestService extends YukiPushService {
Intent
j
=
new
Intent
(
Intent
.
ACTION_VIEW
,
Uri
.
parse
(
msg
));
j
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
startActivity
(
j
);
/*Intent i=new Intent(Intent.ACTION_VIEW, Uri.parse("msg://msg"));
PendingIntent pi=PendingIntent.getActivity(getApplicationContext(),0,i,PendingIntent.FLAG_UPDATE_CURRENT);
NotificationController.Notify(getApplicationContext(),GetServiceID(),GetIcon(),pi,
"Yuki Push Service","Yuki Push Service",msg, Notification.FLAG_NO_CLEAR|Notification.FLAG_AUTO_CANCEL);*/
}
}
rubylib/build.gradle
浏览文件 @
eef9c064
...
...
@@ -7,7 +7,7 @@ publish {
userOrg
=
'takeya-yuki-studio'
//bintray注册的用户名
groupId
=
'jp.ruby.rubylib'
//compile引用时的第1部分groupId
artifactId
=
'rubylib'
//compile引用时的第2部分项目名
publishVersion
=
'1.0.
9
'
//compile引用时的第3部分版本号
publishVersion
=
'1.0.
10
'
//compile引用时的第3部分版本号
desc
=
'Ruby Extended Controls'
website
=
'https://github.com/Takeya-Yuki/RubyLib.git'
}
...
...
@@ -21,7 +21,7 @@ android {
minSdkVersion
21
targetSdkVersion
26
versionCode
9
versionName
"1.0.
9
"
versionName
"1.0.
10
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
...
rubylib/src/main/java/yuki/msg/extended/YukiPushService.java
浏览文件 @
eef9c064
...
...
@@ -60,15 +60,16 @@ public abstract class YukiPushService extends Service {
String
readline
;
readline
=
sin
.
readLine
();
while
(
readline
!=
null
){
while
(
true
){
readline
=
sin
.
readLine
();
if
(
readline
.
isEmpty
()){
continue
;}
if
(
readline
==
null
){
break
;
continue
;
}
else
{
MessagePushed
(
readline
);
}
MessagePushed
(
readline
);
}
socket
.
close
();
}
catch
(
IOException
ex
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录