Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
aipaw committed Feb 10, 2020
1 parent 8caa01b commit 322c806
Show file tree
Hide file tree
Showing 20 changed files with 34 additions and 20 deletions.
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
*.xcuserdatad
*.iml
.gradle
.idea
build
.DS_Store
./android/__MACOSX
./android/build
./android/*.iml
./ios/__MACOSX
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 aipaw
Copyright (c) 2020 kuaifan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

6 changes: 1 addition & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//
compileOnly "com.alibaba:fastjson:${project.fastjsonLibVersion}"
if (project.eeuiVersionCode >= 28) {
compileOnly "org.apache.weex:sdk_legacy:${project.weex_sdkLibVersion}"
} else {
compileOnly "com.taobao.android:weex_sdk:${project.weex_sdkLibVersion}"
}
compileOnly "org.apache.weex:sdk_legacy:${project.weex_sdkLibVersion}"
//
compileOnly project(":eeui")
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void init(Context content) {

//1、注册weex模块
try {
WXSDKEngine.registerModule("accelerometer", AppaccelerometerModule.class);
WXSDKEngine.registerModule("eeuiAccelerometer", AppaccelerometerModule.class);
} catch (WXException e) {
e.printStackTrace();
}
Expand Down
6 changes: 6 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"desc": "获取当前加速度、实时监听加速度",
"requireFormatName": "eeuiAccelerometer",
"requireName": "eeui/accelerometer",
"title": "加速器"
}
8 changes: 4 additions & 4 deletions ios/accelerometer.podspec → ios/eeuiAccelerometer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pod::Spec.new do |s|



s.name = "accelerometer"
s.name = "eeuiAccelerometer"
s.version = "1.0.0"
s.summary = "eeui plugin."
s.description = <<-DESC
Expand All @@ -13,11 +13,11 @@ Pod::Spec.new do |s|

s.homepage = "https://eeui.app"
s.license = "MIT"
s.author = { "veryitman" => "[email protected]" }
s.author = { "kuaifan" => "[email protected]" }
s.source = { :path => '.' }
s.source_files = "accelerometer", "**/**/*.{h,m,mm,c}"
s.source_files = "eeuiAccelerometer", "**/**/*.{h,m,mm,c}"
s.exclude_files = "Source/Exclude"
s.resources = 'accelerometer/resources/*.*'
s.resources = 'eeuiAccelerometer/resources/*.*'
s.platform = :ios, "8.0"
s.requires_arc = true

Expand Down
File renamed without changes.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>accelerometer.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @interface AppaccelerometerModule ()

@implementation AppaccelerometerModule

WX_PlUGIN_EXPORT_MODULE(accelerometer, AppaccelerometerModule)
WX_PlUGIN_EXPORT_MODULE(eeuiAccelerometer, AppaccelerometerModule)
WX_EXPORT_METHOD(@selector(get:))
WX_EXPORT_METHOD(@selector(watch::))
WX_EXPORT_METHOD(@selector(clearWatch:))
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions script/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// 安装插件时会node运行此文件
1 change: 1 addition & 0 deletions script/uninstall.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// 卸载插件时会node运行此文件

0 comments on commit 322c806

Please sign in to comment.