Skip to content

Commit

Permalink
Removed unused namespace creating conflict (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Jun 3, 2024
1 parent 37e7e4a commit 5021883
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 325 deletions.
1 change: 1 addition & 0 deletions src/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"java.lang.Thread$UncaughtExceptionHandler",
"java.lang.invoke.VarHandle$VarHandleDesc",
"java.lang.reflect.AnnotatedType",
"java.lang.runtime.ObjectMethods",
"java.security.SecureRandomParameters",
"java.sql.ConnectionBuilder",
"java.sql.DriverAction",
Expand Down
90 changes: 5 additions & 85 deletions src/net/Netdroid/Generated/Android/Widget/AdapterView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -835,85 +835,12 @@ public T GetAdapter()
{
return IExecuteWithSignature<T>("getAdapter", "()Landroid/widget/Adapter;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getAdapter()"/>
/// </summary>
/// <returns><typeparamref name="T"/></returns>
public T GetAdapterDirect()
{
return IExecuteWithSignature<TDirect, T>("getAdapter", "()Landroid/widget/Adapter;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#setAdapter(android.widget.Adapter)"/>
/// </summary>
/// <param name="arg0"><typeparamref name="T"/></param>
public void SetAdapter(T arg0)
{
IExecuteWithSignature("setAdapter", "(Landroid/widget/Adapter;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#setSelection(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void SetSelection(int arg0)
{
IExecuteWithSignature("setSelection", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getEmptyView()"/>
/// </summary>
/// <returns><see cref="Android.View.View"/></returns>
public Android.View.View GetEmptyView()
{
return IExecuteWithSignature<Android.View.View>("getEmptyView", "()Landroid/view/View;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#performItemClick(android.view.View,int,long)"/>
/// </summary>
/// <param name="arg0"><see cref="Android.View.View"/></param>
/// <param name="arg1"><see cref="int"/></param>
/// <param name="arg2"><see cref="long"/></param>
/// <returns><see cref="bool"/></returns>
public bool PerformItemClick(Android.View.View arg0, int arg1, long arg2)
{
return IExecute<bool>("performItemClick", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemClickListener"/></returns>
public Android.Widget.AdapterView.OnItemClickListener GetOnItemClickListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemClickListener>("getOnItemClickListener", "()Landroid/widget/AdapterView$OnItemClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemClickListener"/></returns>
public Android.Widget.AdapterView.OnItemClickListener GetOnItemClickListenerDirect()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemClickListenerDirect, Android.Widget.AdapterView.OnItemClickListener>("getOnItemClickListener", "()Landroid/widget/AdapterView$OnItemClickListener;");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemLongClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemLongClickListener"/></returns>
public Android.Widget.AdapterView.OnItemLongClickListener GetOnItemLongClickListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemLongClickListener>("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;");

}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemLongClickListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemLongClickListener"/></returns>
public Android.Widget.AdapterView.OnItemLongClickListener GetOnItemLongClickListenerDirect()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemLongClickListenerDirect, Android.Widget.AdapterView.OnItemLongClickListener>("getOnItemLongClickListener", "()Landroid/widget/AdapterView$OnItemLongClickListener;");

}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemSelectedListener()"/>
/// </summary>
/// <returns><see cref="Android.Widget.AdapterView.OnItemSelectedListener"/></returns>


public Android.Widget.AdapterView.OnItemSelectedListener GetOnItemSelectedListener()
{
return IExecuteWithSignature<Android.Widget.AdapterView.OnItemSelectedListener>("getOnItemSelectedListener", "()Landroid/widget/AdapterView$OnItemSelectedListener;");
Expand All @@ -934,14 +861,7 @@ public int GetCount()
{
return IExecuteWithSignature<int>("getCount", "()I");
}
/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getFirstVisiblePosition()"/>
/// </summary>
/// <returns><see cref="int"/></returns>
public int GetFirstVisiblePosition()
{
return IExecuteWithSignature<int>("getFirstVisiblePosition", "()I");
}

/// <summary>
/// <see href="https://developer.android.com/reference/android/widget/AdapterView.html#getLastVisiblePosition()"/>
/// </summary>
Expand Down
43 changes: 0 additions & 43 deletions src/net/Netdroid/Generated/Java/Lang/AllPackageClasses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1836,49 +1836,6 @@ public Runnable(params object[] args) : base(args) { }
}
#endregion

#region Runtime
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html"/>
/// </summary>
public partial class Runtime : MASES.JCOBridge.C2JBridge.JVMBridgeBase<Runtime>
{
const string _bridgeClassName = "java.lang.Runtime";
/// <summary>
/// Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
/// </summary>
public Runtime() { }
/// <summary>
/// Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
/// </summary>
public Runtime(params object[] args) : base(args) { }

private static readonly IJavaType LocalBridgeClazz = ClazzOf(_bridgeClassName);

/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm"/>
/// </summary>
public override string BridgeClassName => _bridgeClassName;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeAbstract.htm"/>
/// </summary>
public override bool IsBridgeAbstract => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeCloseable.htm"/>
/// </summary>
public override bool IsBridgeCloseable => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeInterface.htm"/>
/// </summary>
public override bool IsBridgeInterface => false;
/// <summary>
/// <see href="https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_IsBridgeStatic.htm"/>
/// </summary>
public override bool IsBridgeStatic => false;

// TODO: complete the class

}
#endregion

#region RuntimePermission
/// <summary>
Expand Down
197 changes: 0 additions & 197 deletions src/net/Netdroid/Generated/Java/Lang/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,203 +25,6 @@

namespace Java.Lang
{
#region Runtime
public partial class Runtime
{
#region Constructors

#endregion

#region Class/Interface conversion operators

#endregion

#region Fields

#endregion

#region Static methods
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#getRuntime()"/>
/// </summary>
/// <returns><see cref="Java.Lang.Runtime"/></returns>
public static Java.Lang.Runtime GetRuntime()
{
return SExecuteWithSignature<Java.Lang.Runtime>(LocalBridgeClazz, "getRuntime", "()Ljava/lang/Runtime;");
}

#endregion

#region Instance methods
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#removeShutdownHook(java.lang.Thread)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Thread"/></param>
/// <returns><see cref="bool"/></returns>
public bool RemoveShutdownHook(Java.Lang.Thread arg0)
{
return IExecuteWithSignature<bool>("removeShutdownHook", "(Ljava/lang/Thread;)Z", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String,java.lang.String[],java.io.File)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <param name="arg2"><see cref="Java.Io.File"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0, Java.Lang.String[] arg1, Java.Io.File arg2)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String,java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0, Java.Lang.String[] arg1)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String arg0)
{
return IExecuteWithSignature<Java.Lang.Process>("exec", "(Ljava/lang/String;)Ljava/lang/Process;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[],java.lang.String[],java.io.File)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <param name="arg2"><see cref="Java.Io.File"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0, Java.Lang.String[] arg1, Java.Io.File arg2)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1, arg2);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[],java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <param name="arg1"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0, Java.Lang.String[] arg1)
{
return IExecute<Java.Lang.Process>("exec", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exec(java.lang.String[])"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Process"/></returns>
/// <exception cref="Java.Io.IOException"/>
public Java.Lang.Process Exec(Java.Lang.String[] arg0)
{
return IExecuteWithSignature<Java.Lang.Process>("exec", "([Ljava/lang/String;)Ljava/lang/Process;", new object[] { arg0 });
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#availableProcessors()"/>
/// </summary>
/// <returns><see cref="int"/></returns>
public int AvailableProcessors()
{
return IExecuteWithSignature<int>("availableProcessors", "()I");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#freeMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long FreeMemory()
{
return IExecuteWithSignature<long>("freeMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#maxMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long MaxMemory()
{
return IExecuteWithSignature<long>("maxMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#totalMemory()"/>
/// </summary>
/// <returns><see cref="long"/></returns>
public long TotalMemory()
{
return IExecuteWithSignature<long>("totalMemory", "()J");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#gc()"/>
/// </summary>
public void Gc()
{
IExecuteWithSignature("gc", "()V");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#addShutdownHook(java.lang.Thread)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Thread"/></param>
public void AddShutdownHook(Java.Lang.Thread arg0)
{
IExecuteWithSignature("addShutdownHook", "(Ljava/lang/Thread;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#exit(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void Exit(int arg0)
{
IExecuteWithSignature("exit", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#halt(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
public void Halt(int arg0)
{
IExecuteWithSignature("halt", "(I)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#load(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
public void Load(Java.Lang.String arg0)
{
IExecuteWithSignature("load", "(Ljava/lang/String;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#loadLibrary(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
public void LoadLibrary(Java.Lang.String arg0)
{
IExecuteWithSignature("loadLibrary", "(Ljava/lang/String;)V", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java/lang/Runtime.html#runFinalization()"/>
/// </summary>
public void RunFinalization()
{
IExecuteWithSignature("runFinalization", "()V");
}

#endregion

#region Nested classes

#endregion

// TODO: complete the class
}
#endregion
}

0 comments on commit 5021883

Please sign in to comment.