Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/sqlite-xamarin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
.stamp
build.gradle
gradle/
gradlew
gradlew.bat
src/

src/main/libs/
21 changes: 21 additions & 0 deletions src/sqlite-xamarin/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
apply plugin: 'android'

android {
compileSdkVersion 'android-25'
buildToolsVersion '25.0.1'

buildTypes {
release {
runProguard false
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
}
Binary file not shown.
6 changes: 6 additions & 0 deletions src/sqlite-xamarin/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip
164 changes: 164 additions & 0 deletions src/sqlite-xamarin/gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions src/sqlite-xamarin/gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions src/sqlite-xamarin/local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.

# location of the SDK. This is only used by Ant
# For customization when using a Version Control System, please read the
# header note.
sdk.dir=/home/atsushi/android-toolchain/sdk
1 change: 0 additions & 1 deletion src/sqlite-xamarin/sqlite-xamarin.mdproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets" />
<PropertyGroup>
<BuildDependsOn>
_CreateProject;
_NdkBuild;
</BuildDependsOn>
</PropertyGroup>
Expand Down
12 changes: 0 additions & 12 deletions src/sqlite-xamarin/sqlite-xamarin.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@
WorkingDirectory="$(SqliteSourceFullPath)"
/>
</Target>
<Target Name="_CreateProject"
Inputs="$(SqliteSourceFullPath)\README.version"
Outputs="src\stamp">
<Exec Condition="!Exists('src')"
Command="$(AndroidSdkDirectory)\tools\android create project -g -n sqlitesample -p . -a MainActivity -t android-$(AndroidApiLevel) --package com.xamarin.sqlitesample -v 1.0.0"
IgnoreStandardErrorWarningFormat="True"
/>
<Copy Condition="!Exists('src\stamp')"
SourceFiles="src-jni\Application.mk;src-jni\Android.mk"
DestinationFiles="src\main\jni\Application.mk;src\main\jni\Android.mk" />
<Touch Files="src\stamp" AlwaysCreate="true" />
</Target>
<ItemGroup>
<!-- build outputs include (if enabled):
src/main/libs/x86/libsqlite3_xamarin.so
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.xamarin.sqlitesample;

import android.test.ActivityInstrumentationTestCase2;

/**
* This is a simple framework for a test of an Application. See
* {@link android.test.ApplicationTestCase ApplicationTestCase} for more information on
* how to write and extend Application tests.
* <p/>
* To run this test, you can type:
* adb shell am instrument -w \
* -e class com.xamarin.sqlitesample.MainActivityTest \
* com.xamarin.sqlitesample.tests/android.test.InstrumentationTestRunner
*/
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> {

public MainActivityTest() {
super("com.xamarin.sqlitesample", MainActivity.class);
}

}
15 changes: 15 additions & 0 deletions src/sqlite-xamarin/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xamarin.sqlitesample"
android:versionCode="1"
android:versionName="1.0">
<application android:label="@string/app_name" android:icon="@drawable/ic_launcher">
<activity android:name="MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.xamarin.sqlitesample;

import android.app.Activity;
import android.os.Bundle;

public class MainActivity extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Loading