SQLite Android Bindings

Check-in [df18f25465]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Upgrade to gradle 3.0. Remove ApplicationTest class (not required?).
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | experimental
Files: files | file ages | folders
SHA1: df18f2546551feb0185e27a4db9df440642bb8fd
User & Date: dan 2017-11-13 18:48:50.728
Context
2017-11-13
21:02
Add modified versions of some of the test files from the Android Compatibility Test Suite (https://android.googlesource.com/platform/cts/). (check-in: 2574c498b9 user: dan tags: experimental)
18:48
Upgrade to gradle 3.0. Remove ApplicationTest class (not required?). (check-in: df18f25465 user: dan tags: experimental)
2017-10-24
19:33
Update this project to version 3.21.0 (check-in: 9fa38e007e user: dan tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to build.gradle.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
Changes to gradle/wrapper/gradle-wrapper.properties.
1
2
3
4
5
6
#Thu Apr 27 23:58:23 ICT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|




|
1
2
3
4
5
6
#Sun Nov 12 03:46:22 ICT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
Changes to sqlite3/build.gradle.
1
2
3
4
5
6
7
8
9
10
11
12
13
apply plugin: 'com.android.library'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"


    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"




<
<







1
2
3
4


5
6
7
8
9
10
11
apply plugin: 'com.android.library'

android {
    compileSdkVersion 25



    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Deleted sqlite3/src/androidTest/java/org/sqlite/database/ApplicationTest.java.
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.sqlite.database;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
 * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
 */
public class ApplicationTest extends ApplicationTestCase<Application> {
    public ApplicationTest() {
        super(Application.class);
    }
}
<
<
<
<
<
<
<
<
<
<
<
<
<


























Changes to sqlite3/src/main/jni/sqlite/sqlite3.c.
941
942
943
944
945
946
947

948
949
950

951
952
953
954
955
956
957
** you should probably leave LFS enabled.  But some embedded platforms might
** lack LFS in which case the SQLITE_DISABLE_LFS macro might still be useful.
**
** Similar is true for Mac OS X.  LFS is only supported on Mac OS X 9 and later.
*/
#ifndef SQLITE_DISABLE_LFS
# define _LARGE_FILE       1

# ifndef _FILE_OFFSET_BITS
#   define _FILE_OFFSET_BITS 64
# endif

# define _LARGEFILE_SOURCE 1
#endif

/* The GCC_VERSION and MSVC_VERSION macros are used to
** conditionally include optimizations for each of these compilers.  A
** value of 0 means that compiler is not being used.  The
** SQLITE_DISABLE_INTRINSIC macro means do not use any compiler-specific







>



>







941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
** you should probably leave LFS enabled.  But some embedded platforms might
** lack LFS in which case the SQLITE_DISABLE_LFS macro might still be useful.
**
** Similar is true for Mac OS X.  LFS is only supported on Mac OS X 9 and later.
*/
#ifndef SQLITE_DISABLE_LFS
# define _LARGE_FILE       1
#if 0
# ifndef _FILE_OFFSET_BITS
#   define _FILE_OFFSET_BITS 64
# endif
#endif
# define _LARGEFILE_SOURCE 1
#endif

/* The GCC_VERSION and MSVC_VERSION macros are used to
** conditionally include optimizations for each of these compilers.  A
** value of 0 means that compiler is not being used.  The
** SQLITE_DISABLE_INTRINSIC macro means do not use any compiler-specific
Changes to sqlite3test/build.gradle.
1
2
3
4
5
6
7
8
9
10
11
12
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "org.sqlite.customsqlitetest"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"




<







1
2
3
4

5
6
7
8
9
10
11
apply plugin: 'com.android.application'

android {
    compileSdkVersion 23


    defaultConfig {
        applicationId "org.sqlite.customsqlitetest"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"