Skip to content

Instantly share code, notes, and snippets.

Avatar

Rainer Schleevoigt AppWerft

View GitHub Profile
@AppWerft
AppWerft / mobileprojects.json
Created Jan 13, 2020
Mobile Projekte Appwerft
View mobileprojects.json
{
"title": "Mobile Projekte Dipl.-Ing. Rainer Schleevoigt",
"items": [
{
"projekt": "Vladi Private Islands",
"technik": "cordova/phonegap",
"plattformen": ["iOS, Android"],
"inhalt": ["Darstellung aktueller Immobilien", "redaktionelle Seiten", "Karte"],
"rolle": "Konzeption und Umsetzung",
"layoutdesign": "Eigenentwicklung",
View gist:03b5159f339b739e6da1a6e4d741700c
module.exports = function() {
var $ = Ti.UI.createView({
backgroundColor : BLUE
});
const Map = require("ti.map");
var mapView = Map.createView({
bottom : 0,
userLocation : Ti.Geolocation.locationServicesEnabled ? true : false,
region : {
View gist:357021b018ff885354aa5de1b9693479
{
"proxies":{
"ti.map.MapModule":{
"superPackageName":"org.appcelerator.kroll",
"methods":{
"isGooglePlayServicesAvailable":{
"runOnUiThread":false,
"hasInvocation":false,
"args":[
View importer.php
?php
$ts = '';
$R = 'EXT:hosvisualization/Resources/Public';
$EP = "/home/mirko/.web/raw";
$NS = "hosvirt_";
$doc = new DOMDocument();
$doc->loadHTMLFile($EP . "/index.html");
$xpath = new DOMXPath($doc);
$count = 10;
foreach ($xpath->evaluate("//link[contains(@href, 'css')]") as $node) {
View console.log
Rainers-MacBook-Pro-3:Hoerdat fuerst$ appc ti build --verbose -p android --sdk 8.0.0.GA
Finding latest version 7.0.10 ✓
Validating security checksum ✓
Installing ✓
Compiling platform native modules
└ external-editor/spawn-sync ✓
└ bunyan/dtrace-provider ✓
└ package/appcd ✓
└ bunyan/dtrace-provider ✓
└ axway-flow/jsonpath ✓
View gist:bb4d9603b92ccef20a446ddf7650525f
Rainers-MacBook-Pro-3:Hoerdat fuerst$ appc ti build --verbose -p android
Appcelerator Command-Line Interface, version 7.0.10
Copyright (c) 2014-2019, Appcelerator, Inc. All Rights Reserved.
2019-5-2 18:14:01
Operating System
Name = Mac OS X
Version = 10.14.4
Architecture = 64bit
View error.log
04-18 20:41:01.695 5544 5563 I TiAPI : _openevent
04-18 20:41:01.695 5544 5563 I TiAPI : _openevent activity
04-18 20:41:01.752 5544 5544 D AndroidRuntime: Shutting down VM
04-18 20:41:01.755 5544 5544 E AndroidRuntime: FATAL EXCEPTION: main
04-18 20:41:01.755 5544 5544 E AndroidRuntime: Process: de.appwerft.hoerdat, PID: 5544
04-18 20:41:01.755 5544 5544 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity ti.modules.titanium.ui.TabGroupProxy.getActivity()' on a null object reference
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at ti.modules.titanium.ui.widget.tabgroup.TiUIAbstractTab.getContentView(TiUIAbstractTab.java:55)
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at ti.modules.titanium.ui.widget.tabgroup.TiUIActionBarTab$TabFragment.onCreateView(TiUIActionBarTab.java:52)
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:2346)
04-18 20:41:01.755 5544 5544 E
View menu.js
/* this module will called from _e.source on open event */
module.exports = function(_openevent) {
console.log("_openevent");
if (!_openevent.source)
return;
var activity = _openevent.source.getActivity();
if (activity) {
console.log("_openevent activity");
activity.onCreateOptionsMenu = function(_menu) {
console.log("_openevent onCreateOptionsMenu");
View gist:d6f7571b04b28b62c1168dd85fc96f8d
@Override
public void onError(Activity activity, int requestCode, Exception e) {
Log.e(LCAT, e.getMessage());
if (onErrorCallback != null) {
KrollDict event = new KrollDict();
event.put("message", e.getMessage());
event.put("error", e.toString());
onErrorCallback.call(getKrollObject(), event);
}
}
View gist:c0704e4d8183072063dfed32133ee592
[DEBUG] Running: /Users/fuerst/Library/Android/ndk/ndk-build TI_MOBILE_SDK=/Users/fuerst/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.GA NDK_PROJECT_PATH=/Users/fuerst/Documents/APPC_WORKSPACE/FIN/Ti.Fidel/android/build/generated NDK_APPLICATION_MK=/Users/fuerst/Documents/APPC_WORKSPACE/FIN/Ti.Fidel/android/build/generated/Application.mk PYTHON=python V=0
[ERROR] Failed to run ndk-build
[ERROR]
[ERROR] In file included from jni/ti.fidel.TifidelModule.cpp:16:0:
[ERROR] jni/ti.fidel.TifidelModule.cpp: In static member function 'static v8::Local<v8::FunctionTemplate> ti::fidel::TifidelModule::getProxyTemplate(v8::Isolate*)':
[ERROR] /Users/fuerst/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.GA/android/native/include/V8Util.h:23:50: error: expected ')' before string constant
[ERROR] v8::String::NewFromUtf8(isolate, string_literal "")
[ERROR] ^
[ERROR] /Users/fuerst/Library/Application Support/Titanium/mobilesdk/osx/7.1.0.GA/android/nat