Content-Length: 1957964 | pFad | http://github.com/NativeScript/napi-android/commit/ee1f4ef5108b3fffd9ee57860f54735e983e8be2

72 part 33 · NativeScript/napi-android@ee1f4ef · GitHub
Skip to content

Commit ee1f4ef

Browse files
committed
part 33
1 parent f9343ca commit ee1f4ef

File tree

679 files changed

+134101
-1414
lines changed

Some content is hidden

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

679 files changed

+134101
-1414
lines changed

Diff for: .idea/.name

-1
This file was deleted.

Diff for: .idea/compiler.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/gradle.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

Diff for: .vscode/c_cpp_properties.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"name": "Android",
55
"includePath": [
66
"${workspaceFolder}/**",
7-
"/Users/ammarahmed/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/**"
7+
"/Users/ammarahmed/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/**",
8+
"${workspaceFolder}/test-app/runtime/src/main/cpp/jsc/include"
89
],
910
"defines": [],
1011
"compilerPath": "/Users/ammarahmed/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang-17",
@@ -13,7 +14,8 @@
1314
"intelliSenseMode": "clang-x86",
1415
"browse": {
1516
"path": [
16-
"/Users/ammarahmed/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64"
17+
"/Users/ammarahmed/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64",
18+
"${workspaceFolder}/test-app/runtime/src/main/cpp/jsc/include"
1719
],
1820
"limitSymbolsToIncludedHeaders": false
1921
}

Diff for: .vscode/settings.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@
7575
"tuple": "cpp",
7676
"typeindex": "cpp",
7777
"vector": "cpp",
78-
"csignal": "cpp"
79-
}
78+
"csignal": "cpp",
79+
"__memory": "cpp",
80+
"stdlib.h": "c",
81+
"assert.h": "c",
82+
"js_native_api.h": "c",
83+
"javascriptcore.h": "c"
84+
},
85+
"cmake.sourceDirectory": "/Volumes/DataDrive/Android/android-runtime/test-app/runtime"
8086
}

Diff for: test-app/.idea/caches/deviceStreaming.xml

+340
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test-app/.idea/deploymentTargetSelector.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test-app/.idea/misc.xml

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test-app/.idea/runConfigurations.xml

+17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test-app/.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test-app/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ android {
239239
}
240240

241241
sourceSets.main {
242-
jniLibs.srcDirs = ["$projectDir/libs/jni", "$projectDir/snapshot-build/build/ndk-build/libs"]
242+
jniLibs.srcDirs = ["$projectDir/libs/jni", "$projectDir/snapshot-build/build/ndk-build/libs", "$projectDir/src/main/jniLibs"]
243243
}
244244

245245
signingConfigs {

Diff for: test-app/app/src/main/assets/app/MyActivity.js

+31-33
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,51 @@
2121
}
2222
}
2323
*/
24-
2524
var MyActivity = (function (_super) {
2625
__extends(MyActivity, _super);
2726
function MyActivity() {
2827
_super.apply(this, arguments);
2928
}
3029
MyActivity.prototype.onCreate = function (bundle) {
30+
console.log("BUNDLE", typeof bundle);
3131
_super.prototype.onCreate.call(this, bundle);
3232
// require('./tests/testsWithContext').run(this);
3333
//run jasmine
3434

35-
execute();
36-
37-
var layout = new android.widget.LinearLayout(this);
38-
layout.setOrientation(1);
39-
this.setContentView(layout);
40-
var textView = new android.widget.TextView(this);
41-
textView.setText("It's a button!");
42-
layout.addView(textView);
35+
// execute();
36+
var layout = new android.widget.LinearLayout(this);
37+
layout.setOrientation(1);
38+
this.setContentView(layout);
39+
var textView = new android.widget.TextView(this);
40+
textView.setText("It's a button!");
41+
layout.addView(textView);
4342

44-
var button = new android.widget.Button(this);
45-
button.setText("Hit me");
46-
layout.addView(button);
47-
var counter = 0;
43+
var button = new android.widget.Button(this);
44+
button.setText("Hit me");
45+
layout.addView(button);
4846

49-
var Color = android.graphics.Color;
50-
var colors = [
51-
Color.BLUE,
52-
Color.RED,
53-
Color.MAGENTA,
54-
Color.YELLOW,
55-
Color.parseColor("#FF7F50"),
56-
];
57-
var taps = 0;
47+
var Color = android.graphics.Color;
48+
var colors = [
49+
Color.BLUE,
50+
Color.RED,
51+
Color.MAGENTA,
52+
Color.YELLOW,
53+
Color.parseColor("#FF7F50"),
54+
];
55+
var taps = 0;
5856

59-
var dum = com.tns.tests.DummyClass.null;
57+
var dum = com.tns.tests.DummyClass.null;
6058

61-
button.setOnClickListener(
62-
new android.view.View.OnClickListener("AppClickListener", {
63-
onClick: function () {
64-
const now = performance.now();
65-
button.setBackgroundColor(colors[taps % colors.length]);
66-
console.log(performance.now() - now);
67-
taps++;
68-
},
69-
})
70-
);
59+
button.setOnClickListener(
60+
new android.view.View.OnClickListener("AppClickListener", {
61+
onClick: function () {
62+
const now = performance.now();
63+
button.setBackgroundColor(colors[taps % colors.length]);
64+
console.log(performance.now() - now);
65+
taps++;
66+
},
67+
})
68+
);
7169
};
7270
MyActivity = __decorate(
7371
[JavaProxy("com.tns.NativeScriptActivity")],

Diff for: test-app/app/src/main/assets/app/MyApp.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// demonstrates how to extend class in JavaScript with prebuilt Java proxy
22

3-
var MyApp = android.app.Application.extend("com.tns.NativeScriptApplication",
4-
{
5-
onCreate: function()
6-
{
7-
console.log("Hello MyApp::onCreate()");
8-
}
3+
var MyApp = android.app.Application.extend("com.tns.NativeScriptApplication", {
4+
onCreate: function () {
5+
console.log("Hello MyApp::onCreate()");
6+
},
97
});
10-

Diff for: test-app/app/src/main/assets/app/mainpage.js

+49-50
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__disableVerboseLogging();
22
__log("starting tests");
3-
//
3+
44
// methods that common tests need to run
55
var testContent = "";
66
__collect = gc;
@@ -17,55 +17,54 @@ __approot = __dirname.substr(0, __dirname.length - 4);
1717

1818

1919
// PASSING TESTS
20-
require("./tests/testMetadata")
21-
require("./tests/testWeakRef");
22-
require("./tests/testMethodResolution");
23-
require("./tests/testMethodResolutionWithNulls");
24-
require("./tests/testInterfaceStaticMethods");
25-
require("./tests/testInterfaceDefaultMethods");
26-
require("./tests/testFieldGetSet");
27-
require("./tests/field-access-test");
28-
require("./tests/java-array-test");
29-
require("./tests/byte-buffer-test");
30-
require("./tests/testInterfaceImplementation");
31-
require("./tests/console/logTests.js");
32-
require("./tests/dex-interface-implementation");
33-
require("./tests/kotlin/properties/testPropertiesSupport");
34-
require("./tests/kotlin/delegation/testDelegationSupport");
35-
require("./tests/kotlin/objects/testObjectsSupport");
36-
require("./tests/kotlin/functions/testTopLevelFunctionsSupport");
37-
require("./tests/kotlin/extensions/testExtensionFunctionsSupport");
38-
require("./tests/kotlin/enums/testEnumsSupport");
39-
require("./tests/kotlin/access/testInternalLanguageFeaturesSupport");
40-
require('./tests/testNativeTimers');
41-
require("./tests/testPackagePrivate");
42-
require("./tests/kotlin/properties/testPropertiesSupport.js");
43-
require("./tests/inheritanceChainResolutionTest");
44-
require("./tests/testRuntimeImplementedAPIs");
45-
require("./tests/testPrimitiveTypeConversion");
46-
require("./tests/numericConversionTests");
47-
require("./tests/testAsserts");
48-
require("./tests/stringConversionTests");
49-
require("./tests/testsInstanceOfOperator");
50-
require("./tests/extendedClassesTests");
51-
require("./tests/testPostFrameCallback");
52-
require("./tests/testsForRuntimeBindingGenerator");
53-
require("./tests/tests");
54-
require("./tests/discardedExceptionsTest");
55-
require("./tests/requireExceptionTests");
56-
require("./tests/exceptionHandlingTests");
57-
require("./tests/testsForTypescript");
58-
require("./tests/testGC");
59-
require("./tests/testReleaseNativeCounterpart");
60-
require("./tests/testArrays");
20+
//require("./tests/testMetadata")
21+
//require("./tests/testWeakRef");
22+
//require("./tests/testMethodResolution");
23+
//require("./tests/testMethodResolutionWithNulls");
24+
//require("./tests/testInterfaceStaticMethods");
25+
//require("./tests/testInterfaceDefaultMethods");
26+
//require("./tests/testFieldGetSet");
27+
//require("./tests/field-access-test");
28+
//require("./tests/java-array-test");
29+
//require("./tests/byte-buffer-test");
30+
//require("./tests/testInterfaceImplementation");
31+
//require("./tests/console/logTests.js");
32+
//require("./tests/dex-interface-implementation");
33+
//require("./tests/kotlin/properties/testPropertiesSupport");
34+
//require("./tests/kotlin/delegation/testDelegationSupport");
35+
//require("./tests/kotlin/objects/testObjectsSupport");
36+
//require("./tests/kotlin/functions/testTopLevelFunctionsSupport");
37+
//require("./tests/kotlin/extensions/testExtensionFunctionsSupport");
38+
//require("./tests/kotlin/enums/testEnumsSupport");
39+
//require("./tests/kotlin/access/testInternalLanguageFeaturesSupport");
40+
//require('./tests/testNativeTimers');
41+
//require("./tests/testPackagePrivate");
42+
//require("./tests/kotlin/properties/testPropertiesSupport.js");
43+
//require("./tests/inheritanceChainResolutionTest");
44+
//require("./tests/testRuntimeImplementedAPIs");
45+
//require("./tests/testPrimitiveTypeConversion");
46+
//require("./tests/numericConversionTests");
47+
//require("./tests/testAsserts");
48+
//require("./tests/stringConversionTests");
49+
//require("./tests/testsInstanceOfOperator");
50+
//require("./tests/extendedClassesTests");
51+
//require("./tests/testPostFrameCallback");
52+
//require("./tests/testsForRuntimeBindingGenerator");
53+
//require("./tests/discardedExceptionsTest");
54+
//require("./tests/requireExceptionTests");
55+
//require("./tests/exceptionHandlingTests");
56+
//require("./tests/tests");
57+
//require("./tests/testsForTypescript");
58+
//require("./tests/testGC");
59+
//require("./tests/testReleaseNativeCounterpart");
60+
//require("./tests/testArrays");
6161
//require("./tests/testJniReferenceLeak");
62-
63-
var shared = require("./shared");
64-
shared.runRequireTests();
65-
shared.runRuntimeTests();
66-
shared.runWorkerTests();
67-
require("./tests/dispatchCallbacksOnUiThreadTests");
68-
require("./tests/testsMemoryManagement");
62+
//var shared = require("./shared");
63+
//shared.runRequireTests();
64+
//shared.runRuntimeTests();
65+
//shared.runWorkerTests();
66+
//require("./tests/dispatchCallbacksOnUiThreadTests");
67+
//require("./tests/testsMemoryManagement");
6968

7069
//shared.runWeakRefTests();
7170

@@ -75,5 +74,5 @@ require("./tests/testsMemoryManagement");
7574
//require('./tests/testURLImpl.js');
7675
//require('./tests/testURLSearchParamsImpl.js');
7776

78-
//require("./tests/testMultithreadedJavascript"); //FAILS
77+
require("./tests/testMultithreadedJavascript"); //FAILS
7978

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/napi-android/commit/ee1f4ef5108b3fffd9ee57860f54735e983e8be2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy