-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
274 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,7 @@ | |
}, | ||
"targets": [ | ||
{ | ||
"name": "default", | ||
"runtimeOS": "HarmonyOS" | ||
"name": "default" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
-4.64 KB
(30%)
GaiaXStretch/bindings/harmony_stretch/AppScope/resources/base/media/app_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 18 additions & 9 deletions
27
GaiaXStretch/bindings/harmony_stretch/entry/build-profile.json5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+650 KB
GaiaXStretch/bindings/harmony_stretch/entry/libs/arm64-v8a/libstretch.so
Binary file not shown.
Binary file removed
BIN
-16.3 MB
GaiaXStretch/bindings/harmony_stretch/entry/libs/arm64-v8a/libtest.so
Binary file not shown.
Binary file added
BIN
+593 KB
GaiaXStretch/bindings/harmony_stretch/entry/libs/armeabi-v7a/libstretch.so
Binary file not shown.
Binary file removed
BIN
-15.3 MB
GaiaXStretch/bindings/harmony_stretch/entry/libs/armeabi-v7a/libtest.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
GaiaXStretch/bindings/harmony_stretch/entry/obfuscation-rules.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Define project specific obfuscation rules here. | ||
# You can include the obfuscation configuration files in the current module's build-profile.json5. | ||
# | ||
# For more details, see | ||
# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md | ||
|
||
# Obfuscation options: | ||
# -disable-obfuscation: disable all obfuscations | ||
# -enable-property-obfuscation: obfuscate the property names | ||
# -enable-toplevel-obfuscation: obfuscate the names in the global scope | ||
# -compact: remove unnecessary blank spaces and all line feeds | ||
# -remove-log: remove all console.* statements | ||
# -print-namecache: print the name cache that contains the mapping from the old names to new names | ||
# -apply-namecache: reuse the given cache file | ||
|
||
# Keep options: | ||
# -keep-property-name: specifies property names that you want to keep | ||
# -keep-global-name: specifies names that you want to keep in the global scope |
14 changes: 14 additions & 0 deletions
14
GaiaXStretch/bindings/harmony_stretch/entry/oh-package-lock.json5
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
{ | ||
"license": "", | ||
"devDependencies": {}, | ||
"author": "", | ||
"name": "entry", | ||
"version": "1.0.0", | ||
"description": "Please describe the basic information.", | ||
"main": "", | ||
"version": "1.0.0", | ||
"author": "", | ||
"license": "", | ||
"dependencies": { | ||
"libentry.so": "file:./src/main/cpp/types/libentry" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
GaiaXStretch/bindings/harmony_stretch/entry/src/main/cpp/hello.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
GaiaXStretch/bindings/harmony_stretch/entry/src/main/ets/pages/Index.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-4.64 KB
(30%)
GaiaXStretch/bindings/harmony_stretch/entry/src/main/resources/base/media/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.25 KB
...etch/bindings/harmony_stretch/entry/src/main/resources/base/media/startIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions
22
GaiaXStretch/bindings/harmony_stretch/entry/src/ohosTest/ets/test/Ability.test.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import hilog from '@ohos.hilog'; | ||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' | ||
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; | ||
|
||
export default function abilityTest() { | ||
describe('ActsAbilityTest', function () { | ||
describe('ActsAbilityTest', () => { | ||
// Defines a test suite. Two parameters are supported: test suite name and test suite function. | ||
beforeAll(function () { | ||
beforeAll(() => { | ||
// Presets an action, which is performed only once before all test cases of the test suite start. | ||
// This API supports only one parameter: preset action function. | ||
}) | ||
beforeEach(function () { | ||
beforeEach(() => { | ||
// Presets an action, which is performed before each unit test case starts. | ||
// The number of execution times is the same as the number of test cases defined by **it**. | ||
// This API supports only one parameter: preset action function. | ||
}) | ||
afterEach(function () { | ||
afterEach(() => { | ||
// Presets a clear action, which is performed after each unit test case ends. | ||
// The number of execution times is the same as the number of test cases defined by **it**. | ||
// This API supports only one parameter: clear action function. | ||
}) | ||
afterAll(function () { | ||
afterAll(() => { | ||
// Presets a clear action, which is performed after all test cases of the test suite end. | ||
// This API supports only one parameter: clear action function. | ||
}) | ||
it('assertContain',0, function () { | ||
it('assertContain', 0, () => { | ||
// Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. | ||
hilog.info(0x0000, 'testTag', '%{public}s', 'it begin'); | ||
let a = 'abc' | ||
let b = 'b' | ||
let a = 'abc'; | ||
let b = 'b'; | ||
// Defines a variety of assertion methods, which are used to declare expected boolean conditions. | ||
expect(a).assertContain(b) | ||
expect(a).assertEqual(a) | ||
expect(a).assertContain(b); | ||
expect(a).assertEqual(a); | ||
}) | ||
}) | ||
} |
4 changes: 2 additions & 2 deletions
4
GaiaXStretch/bindings/harmony_stretch/entry/src/ohosTest/ets/test/List.test.ets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import abilityTest from './Ability.test' | ||
import abilityTest from './Ability.test'; | ||
|
||
export default function testsuite() { | ||
abilityTest() | ||
abilityTest(); | ||
} |
Oops, something went wrong.