Skip to content

Commit 15f51d2

Browse files
first upload code
1 parent 5654838 commit 15f51d2

File tree

1,372 files changed

+270377
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,372 files changed

+270377
-0
lines changed

Android/.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*.iml
2+
*.iml
3+
local.properties
4+
/build
5+
*/build
6+
.gradle
7+
*/.gradle
8+
*/.idea
9+
.idea
10+
*/.externalNativeBuild
11+
demo/src/main/gen/
12+
j2v8/src/main/gen/
13+
liteapp/src/androidTest/gen/
14+
liteapp/src/main/gen/
15+
.project
16+
temp.py

Android/android.md

Whitespace-only changes.

Android/build.gradle

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
3+
4+
buildscript {
5+
repositories {
6+
jcenter()
7+
maven {
8+
url 'https://maven.google.com/'
9+
name 'Google'
10+
}
11+
}
12+
dependencies {
13+
classpath 'com.android.tools.build:gradle:3.0.1'
14+
15+
// NOTE: Do not place your application dependencies here; they belong
16+
// in the individual module build.gradle files
17+
}
18+
}
19+
20+
allprojects {
21+
repositories {
22+
jcenter()
23+
maven { url 'https://jitpack.io' }
24+
maven {
25+
url "https://maven.google.com"
26+
}
27+
maven {
28+
url 'https://maven.google.com/'
29+
name 'Google'
30+
}
31+
}
32+
}
33+
34+
task clean(type: Delete) {
35+
delete rootProject.buildDir
36+
}

Android/demo/build.gradle

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.3'
6+
7+
defaultConfig {
8+
applicationId "com.iqiyi.halberd.demo"
9+
minSdkVersion 16
10+
targetSdkVersion 27
11+
versionCode 1
12+
versionName "1.0"
13+
14+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
15+
ndk {
16+
abiFilters 'armeabi-v7a'//, 'x86'//'armeabi-v7a' 'x86'
17+
}
18+
externalNativeBuild {
19+
cmake {
20+
cppFlags "-std=c++11 -frtti -fexceptions"
21+
}
22+
}
23+
}
24+
lintOptions {
25+
abortOnError false
26+
}
27+
buildTypes {
28+
release {
29+
minifyEnabled false
30+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
31+
}
32+
debug {
33+
}
34+
}
35+
}
36+
37+
repositories {
38+
jcenter()
39+
40+
flatDir {
41+
dirs 'libs';
42+
}
43+
}
44+
45+
dependencies {
46+
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
47+
compile fileTree(include: ['*.jar'], dir: 'libs')
48+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
49+
exclude group: 'com.android.support', module: 'support-annotations'
50+
})
51+
compile project(':liteapp')
52+
//compile 'com.github.qingmei2:QrCodeScannerView-Android:1.1.2'
53+
compile 'com.android.support:support-core-ui:27.0.2'
54+
compile 'com.wang.avi:library:2.1.3'
55+
testCompile 'junit:junit:4.12'
56+
implementation project(':exoplayer')
57+
}

Android/demo/proguard-rules.pro

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this path are appended to flags specified
3+
# in C:\Users\chen\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source path name.
25+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"success":true,
3+
"data":[
4+
{
5+
"id":"app_01",
6+
"name":"app_01",
7+
"version":"1.1"
8+
},
9+
{
10+
"id":"app_02",
11+
"name":"app_02",
12+
"version":"1.2"
13+
},
14+
{
15+
"id":"app_03",
16+
"name":"app_03",
17+
"version":"1.2"
18+
},
19+
{
20+
"id":"app_04",
21+
"name":"app_04",
22+
"version":"1.4"
23+
},
24+
{
25+
"id":"app_05",
26+
"name":"app_05",
27+
"version":"1.5"
28+
},
29+
{
30+
"id":"app_06",
31+
"name":"app_06",
32+
"version":"1.5"
33+
},
34+
{
35+
"id":"123",
36+
"name":"123",
37+
"version":"1.4"
38+
}
39+
]
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
*
3+
* Copyright 2018 iQIYI.com
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*
17+
*/
18+
package com.iqiyi.halberd.demo;
19+
20+
import android.content.Context;
21+
import android.support.test.InstrumentationRegistry;
22+
import android.support.test.runner.AndroidJUnit4;
23+
24+
import org.junit.Test;
25+
import org.junit.runner.RunWith;
26+
27+
import static org.junit.Assert.*;
28+
29+
/**
30+
* Instrumentation test, which will execute on an Android device.
31+
*
32+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
33+
*/
34+
@RunWith(AndroidJUnit4.class)
35+
public class ExampleInstrumentedTest {
36+
@Test
37+
public void useAppContext() throws Exception {
38+
// Context of the app under test.
39+
Context appContext = InstrumentationRegistry.getTargetContext();
40+
41+
assertEquals("com.iqiyi.haberd.demo", appContext.getPackageName());
42+
}
43+
}
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.iqiyi.halberd.demo">
4+
5+
<uses-permission android:name="android.permission.CAMERA" />
6+
7+
<uses-feature android:name="android.hardware.camera" />
8+
<uses-feature android:name="android.hardware.camera.autofocus" />
9+
10+
<application
11+
android:allowBackup="true"
12+
android:icon="@drawable/iqiyi"
13+
android:label="@string/app_name"
14+
android:roundIcon="@drawable/iqiyi"
15+
android:supportsRtl="true">
16+
<activity
17+
android:name=".DemoActivity"
18+
android:launchMode="singleTop"
19+
android:taskAffinity=".main">
20+
<intent-filter>
21+
<action android:name="android.intent.action.MAIN" />
22+
23+
<category android:name="android.intent.category.LAUNCHER" />
24+
</intent-filter>
25+
</activity>
26+
<activity
27+
android:name=".LiteAppListActivity"
28+
android:launchMode="singleTop"
29+
android:screenOrientation="portrait" />
30+
31+
<activity android:name=".DIYLiteAppActivity"
32+
android:launchMode="singleTop"
33+
android:screenOrientation="portrait" />
34+
</application>
35+
36+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"success":true,
3+
"data":[
4+
{
5+
"id":"mp-iqiyi",
6+
"name":"mp-iqiyi",
7+
"version":"1.0"
8+
},
9+
{
10+
"id":"iqiyi",
11+
"name":"iqiyi",
12+
"version":"1.1"
13+
}
14+
]
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
.qy-input{
3+
display : block;
4+
height : 1.4rem;
5+
text-overflow : clip;
6+
overflow : hidden;
7+
white-space : nowrap;
8+
font-family : UICTFontTextStyleBody;
9+
min-height : 1.4rem;
10+
border:0;
11+
background-color:initial;
12+
}
13+
14+
.qy-video{
15+
background-color : #000000;
16+
}
17+
18+
.qy-listview .center_tip {
19+
position: absolute;
20+
left: 50%;
21+
top: 50%;
22+
transform: translate(-50%, -50%);
23+
transform-origin: 50% 50%;
24+
}
25+
.qy-listview .qy-listview-block_index_list {
26+
position: fixed;
27+
right: 0;
28+
top: 50%;
29+
transform: translate(0, -50%);
30+
}
31+
.qy-listview .qy-listview-block_index_list li {
32+
padding: .4rem 1rem;
33+
}
34+
.qy-listview .center_tip {
35+
display: none;
36+
position: fixed;
37+
width: 6rem;
38+
height: 6rem;
39+
line-height: 6rem;
40+
border-radius: 50%;
41+
text-align: center;
42+
background: rgba(0, 0, 0, 0.2);
43+
}
44+
45+
.qy-list_block header {
46+
display: block;
47+
height: 3rem;
48+
line-height: 3rem;
49+
padding-left: 1.6rem;
50+
background: #f5f5f5;
51+
font-size: 1.6rem;
52+
color: #666;
53+
}
54+
55+
.qy-scrollview{
56+
width:100%;
57+
height:100%;
58+
whiteSpace: nowrap;
59+
}

0 commit comments

Comments
 (0)